Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp93054ybl; Tue, 13 Aug 2019 16:35:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnPnV8mk1oLmxwCcDuzUeE18sHSrNQh/sCUZ4rQrGz38bNWL4GRLrI6Kw67h5qJCNcx3b6 X-Received: by 2002:a62:2c93:: with SMTP id s141mr26234530pfs.114.1565739350055; Tue, 13 Aug 2019 16:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565739350; cv=none; d=google.com; s=arc-20160816; b=yoA840G79AYC2iNFCR9OopfumgAqD8yL5thr+kQfVrCkNdITakKKx5+Rxpkv4pCQRG 120Eyo2Cgs/g0FzyuK3B0QVMbYVJeIJKPxjvX5300YW8Ke6k2XThiH//MtvvHEpTb4Uw ZFsoCVyuole1OByrqN5+2LiBP3ujXi9uG/CszqAaNg+V8V3noJrtgkqNpvdecvgKnvr1 WXmhFynMFoz6xtHB3wSCG2zbuj2e1M8Bg092tKk5ElSGkoSctINDjbZdBuacP8B32u3B rPd0cwK8hvdjQg5upaNPNUbpkuP3cnbFwrjTrRbeZeXUdnCSEs9gmGHqD/9JY7rk2W7z QnHw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6AKiHVBWeGehD4bo1HjVW5/6PqjV6X6zmTlvx9vYt8c=; b=tG4sldr00FuGzX1Y+XAUCgpde2Hlw7tvcypuPdopNxHKXlgpSR00hB+YAj2t4p6ECq Ny9gxmcDFacq/pU4ZFCLwX9bmTNQ/6kkmnvlltK66bnkJjR86MA32MAdm3HdFFojX9Vk OFic3V1jxFgI6OrWfA42w4jN+H9daTzEHhgDNFGF7kKEDaWHScD5ZsM8yHX9I9wHRxyw oqwEoeNieLQS1cgzn2DDsq8Nxln9uuKVbrcks8DCf3AJ1j9fRGdAAsiD8fLhxWo8tdeu cnzW7TyjGlX6XWyfAKX9JgE3SQA5fmLiM4lz4Ra0H3AP9qlnCRvV54iIjwR9pKIP6sU6 lPJg== 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 p11si60824891plq.208.2019.08.13.16.35.34; Tue, 13 Aug 2019 16:35:50 -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 S1726602AbfHMXfB (ORCPT + 99 others); Tue, 13 Aug 2019 19:35:01 -0400 Received: from proxima.lasnet.de ([78.47.171.185]:45164 "EHLO proxima.lasnet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfHMXfA (ORCPT ); Tue, 13 Aug 2019 19:35:00 -0400 X-Greylist: delayed 416 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Aug 2019 19:35:00 EDT Received: from localhost.localdomain (unknown [5.148.42.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id 77AC9CB70F; Wed, 14 Aug 2019 01:28:03 +0200 (CEST) Subject: Re: [PATCH] net: ieee802154: remove redundant assignment to rc To: Colin King , Alexander Aring , "David S . Miller" , linux-wpan@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190813142818.15022-1-colin.king@canonical.com> From: Stefan Schmidt Message-ID: Date: Wed, 14 Aug 2019 01:28:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190813142818.15022-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On 13.08.19 16:28, Colin King wrote: > 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) > This patch has been applied to the wpan tree and will be part of the next pull request to net. Thanks! regards Stefan Schmidt