Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1108561ybl; Tue, 13 Aug 2019 07:30:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa0NDvkOPqZaGyrmRMMY1S+ql3w3opTK0QFo8mj8veMpD702XCur7+9B6OabJ5ItEWssoV X-Received: by 2002:a17:90a:2667:: with SMTP id l94mr2568694pje.74.1565706636762; Tue, 13 Aug 2019 07:30:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565706636; cv=none; d=google.com; s=arc-20160816; b=XRfypaMrFhyVAvRClx9CsStFjttXkuZwtfqE9FzwlWkR2eVKyIWL8jev64FOVKxioO 2hvL+eYr5t/I/ZQlnRdKeci2K3dYt+2k5You3oJv9C90EqvR2Em6MNM4qnkVKjPrPJ2g 6dBH23MQH3AjA/H1CUflIxgZoNd1jKjC0SJW2bUYHqsQABciR6f6ezuyqBJBGxc+V788 R4tYpdE252Ga0xPkKuV1AA6gKhU0cgV4dlhiVoCQQP3iPv6Y2GVD0ganhKSYWBL5pe+E 90U5ws/YMss27xNjHrwCIqw3Sn2JNS7fzloqX+wrroYbnGbGV7Uj7CIgfawIQvtwk1jH GATw== 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=v3YeRBcwoM27A/QT+NhqayePcvNUT3Znzb33WOhhijM=; b=mVn3RNEfcX4pFkWRQeIQh3jtUgDc326lArfel+SavJvgv16lL04ZLjAO0gMuT5evCP 6BubBX2CJrHpmpFrfCRhZ4BVxhN2+trx0jkswxfxmsyYT9OAw72jS8vyIilhdeMZ8cWX 4jsY6JYSmaf/guVeLKgPbs5tsviOYet+rmr58JjleHXlzC88fnCy68+8lcOOqIkwD+nn kHTwzSn5kBhIGvB2cwOeWaF0O3op1Y6nYNnoQ5MlbsNAhfOMJ7IEFh6HRzodQgcnw1zp C2Ogq1PrYtel19aKSLZhbNNMTBcvLISefSF6bh5qxUMqr+uoafr1Xzf9ZJhleB8ky8yF vWxQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e92si59803048pld.312.2019.08.13.07.30.21; Tue, 13 Aug 2019 07:30:36 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729493AbfHMO2X (ORCPT + 99 others); Tue, 13 Aug 2019 10:28:23 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:57512 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727768AbfHMO2X (ORCPT ); Tue, 13 Aug 2019 10:28:23 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hxXmc-0001H7-F2; Tue, 13 Aug 2019 14:28:18 +0000 From: Colin King To: Alexander Aring , Stefan Schmidt , "David S . Miller" , linux-wpan@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ieee802154: remove redundant assignment to rc Date: Tue, 13 Aug 2019 15:28:18 +0100 Message-Id: <20190813142818.15022-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 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 Variable rc is initialized to a value that is never read and it is re-assigned later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- net/ieee802154/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ieee802154/socket.c b/net/ieee802154/socket.c index dacbd58e1799..badc5cfe4dc6 100644 --- a/net/ieee802154/socket.c +++ b/net/ieee802154/socket.c @@ -1092,7 +1092,7 @@ static struct packet_type ieee802154_packet_type = { static int __init af_ieee802154_init(void) { - int rc = -EINVAL; + int rc; rc = proto_register(&ieee802154_raw_prot, 1); if (rc) -- 2.20.1