Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3300699imm; Mon, 6 Aug 2018 02:11:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf5NOH3K2JIgTh+33nftgUqLuEghF8t5+svgJjDrbRSOryJnCqxxagvPBR38keNnUiITp2/ X-Received: by 2002:a17:902:7c8e:: with SMTP id y14-v6mr13469316pll.265.1533546716334; Mon, 06 Aug 2018 02:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533546716; cv=none; d=google.com; s=arc-20160816; b=KnsfJnrcawJ33qwfzgDTHmAeBy2kjHuXBWnmEJyFepS+aC8w+M1PoT6O1RTlWeQ3xn 7ZBA3MbnBoiGqtsMv3ZxAGcWL5qlB5dkThWM6oGD5WcwgoQ26wX6H9Yw1FJfTt9SZPPw I+RmAcV2It6NDKk65Q2JYNFSZ4ZYp6bLhwU0xcXLFsBh9fod6kVm9bYQhnG4w+WWgk2a Izf+fgDNnAvUDcpa/ltsfdfqV/GfRSglqT6GaQJp8+YtExEa6TRo7zmzu0bqYjz63D1U EsIaVfJdmixUdTzlQcahVQIXplSx1gFJ9aTqDsT5SHXBSQbcFiMtk1mcqzOkiSGPr61/ yRjQ== 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:arc-authentication-results; bh=U3yNbkp8vJzK5t1MKQW4Adqc4/m1oW27rDl1aaA0rrQ=; b=tHwcQAO5fV2Nc2qjM76hy/Ctjqp47cnmhsya/ROx/yLc175qA6gRAfphyMg8RKrzcL 9U18PL5IEAfmY8ILoK/8yBVF6S6JyE541V7KINQUA/73UOyWk89IvWWN58QiN0X7y440 zgm2otcPv3hmCMGn22tcAwi0RZhwOKSRGz3dz6ssPRfzua6iOfSIZw61fr3vScdQyma3 acUKv6dUf4NMYYSN8tdrjRCa+IP/1sOILflw/QryduhwCrUna8F6A/GiIm7U7HGHHbiD O6Q5p7A57yxhMBtraU4sBr1GuHZUh2WqRCGrisg1buekWmWc0dNcYL9L9kiDqj8GWX4b 1Ebg== 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 g5-v6si6634654plp.225.2018.08.06.02.11.40; Mon, 06 Aug 2018 02:11:56 -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 S1727490AbeHFLS7 (ORCPT + 99 others); Mon, 6 Aug 2018 07:18:59 -0400 Received: from proxima.lasnet.de ([78.47.171.185]:44920 "EHLO proxima.lasnet.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbeHFLS7 (ORCPT ); Mon, 6 Aug 2018 07:18:59 -0400 Received: from [IPv6:2003:e9:d706:d44e:3252:cbff:fe54:190f] (p200300E9D706D44E3252CBFFFE54190F.dip0.t-ipconnect.de [IPv6:2003:e9:d706:d44e:3252:cbff:fe54:190f]) (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 3D0FCC8534; Mon, 6 Aug 2018 11:10:50 +0200 (CEST) Subject: Re: [PATCH] net: ieee802154: 6lowpan: remove redundant pointers 'fq' and 'net' 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: <20180731154507.5247-1-colin.king@canonical.com> From: Stefan Schmidt Message-ID: <12eda875-e456-6bde-d4c4-8e2cb3189cd0@datenfreihafen.org> Date: Mon, 6 Aug 2018 11:10:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180731154507.5247-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 07/31/2018 05:45 PM, Colin King wrote: > From: Colin Ian King > > Pointers fq and net are being assigned but are never used hence they > are redundant and can be removed. > > Cleans up clang warnings: > warning: variable 'fq' set but not used [-Wunused-but-set-variable] > warning: variable 'net' set but not used [-Wunused-but-set-variable] > > Signed-off-by: Colin Ian King > --- > net/ieee802154/6lowpan/reassembly.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/net/ieee802154/6lowpan/reassembly.c b/net/ieee802154/6lowpan/reassembly.c > index ec7a5da56129..e7857a8ac86d 100644 > --- a/net/ieee802154/6lowpan/reassembly.c > +++ b/net/ieee802154/6lowpan/reassembly.c > @@ -40,9 +40,6 @@ static int lowpan_frag_reasm(struct lowpan_frag_queue *fq, > static void lowpan_frag_init(struct inet_frag_queue *q, const void *a) > { > const struct frag_lowpan_compare_key *key = a; > - struct lowpan_frag_queue *fq; > - > - fq = container_of(q, struct lowpan_frag_queue, q); > > BUILD_BUG_ON(sizeof(*key) > sizeof(q->key)); > memcpy(&q->key, key, sizeof(*key)); > @@ -52,10 +49,8 @@ static void lowpan_frag_expire(struct timer_list *t) > { > struct inet_frag_queue *frag = from_timer(frag, t, timer); > struct frag_queue *fq; > - struct net *net; > > fq = container_of(frag, struct frag_queue, q); > - net = container_of(fq->q.net, struct net, ieee802154_lowpan.frags); > > spin_lock(&fq->q.lock); > > This patch has been applied to the wpan-next tree and will be part of the next pull request to net-next. Thanks! regards Stefan Schmidt