Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5305832imm; Tue, 31 Jul 2018 08:46:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfvZU2ofdG9Ack9U+4bb5DIF8CeWXeWHDpf4XocEJbEhq2stEIqD+B1rDtc0bBQQzv0gddw X-Received: by 2002:a62:6746:: with SMTP id b67-v6mr22811987pfc.243.1533051972852; Tue, 31 Jul 2018 08:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533051972; cv=none; d=google.com; s=arc-20160816; b=UzPq28Z6QHMlbFDD/4dSqZsjkoBm3SVcVT4fRcvu2Rjv8c4BMH2uqLc27onaC9QW6J RE822XN69woV1JM+C7K38gVVlZdEPFus3VZx0/vtRIQyIPsPXewzVW9feEQUBrRo049g C1ciCJfY93P8k3zFvVK0Tozasa+ZuQQmLV8svZiXPzeZqFfWf1htAOQnXYMS3MsoS3jD +9I1R88Kzi3Jamas0sIt+TgBEHp4WPgq5vFemIzA8jgcZ7TDk//6+cMC2j7UO3RP1bHO nYEWRtBfMWLmFSDf/9J0w+I9uHDo6XP4OZPs68WokO6gK8m0SNC0e90i6RoZvTN2ReKC SZcg== 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:arc-authentication-results; bh=0+PkXJ1s+pD/mhiOwamWW3LaA2U1sCjoyuW4Z4G/5qM=; b=oHFLth55i1gnlkkM5ZMcG4mIQbh2oP9ii6wc3Mw9DnyTqbFOBSXitPazrk7Vghrx8S Xt3imL70FCJ+O+VUR2/L4FjDfg6rqfQzwjH0H47fYrXBzbcS60DtsZvnoObweUqeAFQV iYseK6n1xJTrtSktjvivbDMA3n11dgVwsnCcm3frxbxUAGA06m5+QKmwG6sH6DIs23S7 tVl2Edq+X4NuphLP7fRnqxWKENt8NIGpEO+Bl+ty8oSMn938upSjhGMiESBz477/HNfY kYJL/L0GMhn5+ZT2Vw7GUb3STg+bDS/7D/RhhLQ13NWcm4Yhqd/XgyJWCWMdF9Hx0qHc 3EGw== 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 i5-v6si13232734pgg.84.2018.07.31.08.45.58; Tue, 31 Jul 2018 08:46:12 -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 S1732492AbeGaR0G (ORCPT + 99 others); Tue, 31 Jul 2018 13:26:06 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:51765 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726789AbeGaR0G (ORCPT ); Tue, 31 Jul 2018 13:26:06 -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 1fkWpg-0001gX-Bw; Tue, 31 Jul 2018 15:45:08 +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: 6lowpan: remove redundant pointers 'fq' and 'net' Date: Tue, 31 Jul 2018 16:45:07 +0100 Message-Id: <20180731154507.5247-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.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 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); -- 2.17.1