Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp725270imm; Thu, 13 Sep 2018 06:53:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaGFhn8MTqMMmt68NqpZNsmVOUygzZWWJVz3CdkSTF0uQnG09H1zDo9Te7sLboIE3P8iuUd X-Received: by 2002:a63:9c19:: with SMTP id f25-v6mr7411053pge.447.1536846788210; Thu, 13 Sep 2018 06:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536846788; cv=none; d=google.com; s=arc-20160816; b=t/lh9D3z8BWR3o4C4fDMSuoow25U2QyGdogQD3l6x7TNfRH+QvEQ9Ei199GeJxqWCe SUlXgSpvzxIthHsxpjnbb3L69XbTGE+Z2Pi1Z9+acNzkgmFQW/RvZEoM+WU629S/d5Ar B4bizNYBAkHEdGtF2S5LxT4FPJ7tftjV6SVgarTFf3TNCuryZgIGkczP1FLgwGZ/ivSL Ts189sSQa4GX5zcDnMF8ob0w8Traglm8Xuig2wqyXw3omd4EJ/8HMZjnq0qwC12qg1AG PBd2cHr+nIZJvAhTLezAvxdZB9U06WPRFJR+W6WOMCg5ljoNyO/r/fzWL1m7rB2SbcYY ScBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=yT+Gy1+6CMiNg2gIiAkzvlj0wixU8iAJMa6htVVgFWc=; b=VncnohUHt4fUtUPP9XtdO5wdmDpnPh+QvcIZWxlKslr7AVS9/6HJt5op9l/J/k9lDS VRl+inIyor7b9X7toTMzewJO6nXou8ILxl0VPP5IgC7rqAVKw5XpujnXFS9so0bWbGwd GbnjILrDP5v2mH4ZOATpKSNAN61TpEdz3fLGyFbvXdSGeIOgzWVjwPW1bdX5FjYf1EQM ASA3fP7MytU4hLicJcgcqjWSZUKX08CczkIlRMg3sR5sv78vDNIt/yq8ZTv0RjLVtTYZ MpPJbYGbs3QDsdhlnPevOI0cZocmfqRW0/oPCEG/WBu0+bTMlIrmHhu005L2Eb6MLNq2 wlLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w61-v6si4071456plb.511.2018.09.13.06.52.53; Thu, 13 Sep 2018 06:53:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730795AbeIMTAr (ORCPT + 99 others); Thu, 13 Sep 2018 15:00:47 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33260 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730608AbeIMTAq (ORCPT ); Thu, 13 Sep 2018 15:00:46 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4EEA7CFE; Thu, 13 Sep 2018 13:51:12 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xin Long , Neil Horman , Marcelo Ricardo Leitner , "David S. Miller" Subject: [PATCH 4.18 020/197] sctp: remove useless start_fail from sctp_ht_iter in proc Date: Thu, 13 Sep 2018 15:29:29 +0200 Message-Id: <20180913131842.375718310@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xin Long [ Upstream commit 834539e69a5fe2aab33cc777ccfd4a4fcc5b9770 ] After changing rhashtable_walk_start to return void, start_fail would never be set other value than 0, and the checking for start_fail is pointless, so remove it. Fixes: 97a6ec4ac021 ("rhashtable: Change rhashtable_walk_start to return void") Signed-off-by: Xin Long Acked-by: Neil Horman Acked-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/sctp/proc.c | 4 ---- 1 file changed, 4 deletions(-) --- a/net/sctp/proc.c +++ b/net/sctp/proc.c @@ -215,7 +215,6 @@ static const struct seq_operations sctp_ struct sctp_ht_iter { struct seq_net_private p; struct rhashtable_iter hti; - int start_fail; }; static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos) @@ -224,7 +223,6 @@ static void *sctp_transport_seq_start(st sctp_transport_walk_start(&iter->hti); - iter->start_fail = 0; return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos); } @@ -232,8 +230,6 @@ static void sctp_transport_seq_stop(stru { struct sctp_ht_iter *iter = seq->private; - if (iter->start_fail) - return; sctp_transport_walk_stop(&iter->hti); }