From patchwork Tue Nov 22 05:44:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9440507 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 51FCE600BA for ; Tue, 22 Nov 2016 05:44:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3471328437 for ; Tue, 22 Nov 2016 05:44:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 255772843B; Tue, 22 Nov 2016 05:44:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D0AD28437 for ; Tue, 22 Nov 2016 05:44:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171AbcKVFoe (ORCPT ); Tue, 22 Nov 2016 00:44:34 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34058 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750942AbcKVFod (ORCPT ); Tue, 22 Nov 2016 00:44:33 -0500 Received: by mail-pf0-f195.google.com with SMTP id y68so654161pfb.1; Mon, 21 Nov 2016 21:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=ho4/iXV+rdf/7QN0Br8ZM5OPaghjkg48fN0s7Vke/J4=; b=ef2bFc09HqozIek6PCiOIVxwXL+QGTOFcUyd381uNm7l4mNVYOUBfHpaCO1HBgR/wx BEx7RdlPeEwonsEGptd2N9uIeLoY2EMiufR8bxFHU9Bg3+3rvwcgxrXUF64Y94VJqniw DC118CpN3ppCCkS3BuxJ5HxcZRxAlU1zYBzig3cRzlti6GsnpW8632l4d6Q/gc2q7Tx3 x77Cc6iZ1whwAymekUN0tsXPdmF87nMpWXSarCvzCx1LICdINQmfXCMbSgTQXtoqf5yW Kfco5jq6RgovhUitNA+2D6GqNAsVqqRF4ldj11eaC3i7Lf2JWxI7ZVVfKS2wjSkzXqQJ zYhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=ho4/iXV+rdf/7QN0Br8ZM5OPaghjkg48fN0s7Vke/J4=; b=cbq0WCVW04dU6tc8mg9ShGVOcmcbQJCjDivJ5HwV1F33qGbbCI6Kcr1+wZ6io2tLwv f5koW5zFujoHjtWoH3MeiFIabAFNx2IcZwr+otHGJDRfPXCYPF0EJ37BXptvSPcguPnS lVQh7P0KCo9heXNCGr/JeSXTxfdpbGdggYo7m/9e7lHCloeZhpalH7fGEjtAHyO+2Df3 MB1gNI6m2eaS08w3j2OS8XbudiVUKX2DNOkYx+E9FTuhPKJNHBiLmsfbuujb3kdc/Edt jeVi6olJnFC7Yy7C21D5wHROks7zn9SfKOMgCvzcrKNepzCv3iDLRjmLTwy35fNvQi0m 7QgQ== X-Gm-Message-State: AKaTC00i90iOPf5vzWoXPTE9xea7oIreneMcGpgF/Jf052KkhK9/kedmnZ4VLovZ5cMQ7A== X-Received: by 10.99.122.14 with SMTP id v14mr40737551pgc.31.1479793472967; Mon, 21 Nov 2016 21:44:32 -0800 (PST) Received: from google.com ([2620:0:1000:1301:6c91:e255:ba2e:d0aa]) by smtp.gmail.com with ESMTPSA id e11sm23497074pgp.10.2016.11.21.21.44.31 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 21 Nov 2016 21:44:32 -0800 (PST) From: Kirtika Ruchandani X-Google-Original-From: Kirtika Ruchandani Date: Mon, 21 Nov 2016 21:44:24 -0800 To: Johannes Berg Cc: Arnd Bergmann , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] mac80211: Remove unused 'struct ieee80211_rx_status' ptr Message-ID: <20161122054424.GA31927@google.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 554891e63a29 introduced 'struct ieee80211_rx_status' in ieee80211_rx_h_defragment but did not use it. Compiling with W=1 gives the following warning, fix it. net/mac80211/rx.c: In function ‘ieee80211_rx_h_defragment’: net/mac80211/rx.c:1911:30: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] Fixes: 554891e63a29 ("mac80211: move packet flags into packet") Cc: Johannes Berg Cc: John W. Linville Signed-off-by: Kirtika Ruchandani --- net/mac80211/rx.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.8.0.rc3.226.g39d4020 diff --git a/net/mac80211/rx.c b/net/mac80211/rx.c index eeab725..d2a00f2 100644 --- a/net/mac80211/rx.c +++ b/net/mac80211/rx.c @@ -1908,7 +1908,6 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx) unsigned int frag, seq; struct ieee80211_fragment_entry *entry; struct sk_buff *skb; - struct ieee80211_rx_status *status; hdr = (struct ieee80211_hdr *)rx->skb->data; fc = hdr->frame_control; @@ -2034,9 +2033,6 @@ ieee80211_rx_h_defragment(struct ieee80211_rx_data *rx) dev_kfree_skb(skb); } - /* Complete frame has been reassembled - process it now */ - status = IEEE80211_SKB_RXCB(rx->skb); - out: ieee80211_led_rx(rx->local); out_no_led: