Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2133460ybh; Fri, 24 Jul 2020 05:21:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZaepUbmLtVriTfQiRnKqWsfd9wHMFJK7wZjPoUdBD+w2BxrLBPgXJI+s9Mqf51OZrcDGj X-Received: by 2002:a17:907:728a:: with SMTP id dt10mr8636983ejc.150.1595593298995; Fri, 24 Jul 2020 05:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595593298; cv=none; d=google.com; s=arc-20160816; b=0OcYOU9mCE4mY0CV+JvjrSiZh7hTplucb2CA4LNZaIFjA8VijGFqnOgQ0hLX1Lh9JX eEnDsr2GTpypvIVXfu66Byrs1g89g45eSD5oNM2L2ePSDOEKVAsO1eMj/yfLIe2LTPMN gCZ6cBfTCeMvFwm+sB+TZwSGXdZPeEkLscjOEDyuLU6ENIPrXJT/+jc9GbUrxLQctgsm y5XkMugQPQDICpuMz5J3RyXT0P7lj4KMOB81vhxlPTwNBp3+OwHsLW5tSjfrSHlW6TuH CGETXUwk6MFZl/h/Q62ujlFpYywjvM1rk8483Gw82aPSkv0atGZQo5+7o37k2OfdfJdB nVUA== 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 :message-id:date:subject:cc:to:from; bh=GQfo4dG2RkCE1LzXjhEzeCz3TnWKCHvqJ86KBmG8V0A=; b=aItBuFELGoUtc1m3cibF+jvawDY3a85ya9dSzgbBj2LWncuELjPVgdCrcRox796MYt OKsysfamOd+Vg5KqW7xCt+sm2K1MLSFWVlv9I7Vnpfj6cfajL4vKU/moFV85m+CsCBwL Vp59EnNZkbBn7ahl658w3tB1U161ChsNY1+SeWsZN+294GBmuEiOJIoAc4QgmTbJplUu mnb+gacplYXPM4p03WyuMDra8XHFR6QHwHv8ghT+JyISU0Lv9vrjrY8LIUHcZwSN3x3d oO434eoBKkr/oSTIXJ0/qXQsWPqo9ZNjwt4cbnCqLleApwEG/2Qbhp573RnfPnY1Gi0v R2uw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a12si475709edf.185.2020.07.24.05.21.15; Fri, 24 Jul 2020 05:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727093AbgGXMSG (ORCPT + 99 others); Fri, 24 Jul 2020 08:18:06 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:34735 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgGXMSF (ORCPT ); Fri, 24 Jul 2020 08:18:05 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jywe9-0000NI-Od; Fri, 24 Jul 2020 12:17:53 +0000 From: Colin King To: Vlad Yasevich , Neil Horman , Marcelo Ricardo Leitner , "David S . Miller" , Jakub Kicinski , linux-sctp@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sctp: remove redundant initialization of variable status Date: Fri, 24 Jul 2020 13:17:53 +0100 Message-Id: <20200724121753.16721-1-colin.king@canonical.com> X-Mailer: git-send-email 2.27.0 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 From: Colin Ian King The variable status is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- net/sctp/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 7ecaf7d575c0..a0448f7c64b9 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c @@ -1368,7 +1368,7 @@ static struct pernet_operations sctp_ctrlsock_ops = { static __init int sctp_init(void) { int i; - int status = -EINVAL; + int status; unsigned long goal; unsigned long limit; unsigned long nr_pages = totalram_pages(); -- 2.27.0