]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
libertas_tf: remove set but not used variable 'flags'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 13 Feb 2019 01:49:17 +0000 (01:49 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:14:23 +0000 (17:14 +0200)
Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/wireless/marvell/libertas_tf/main.c: In function 'lbtf_rx':
drivers/net/wireless/marvell/libertas_tf/main.c:554:15: warning:
 variable 'flags' set but not used [-Wunused-but-set-variable]

It never used and can be removed.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Steve deRosier <derosier@cal-sierra.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas_tf/main.c

index 4c5684e221124e0828513d7d7a7a810862b6f4a7..f048b57043c6e3c8d5026cffe76f676d19bc9332 100644 (file)
@@ -550,7 +550,6 @@ int lbtf_rx(struct lbtf_private *priv, struct sk_buff *skb)
        struct ieee80211_rx_status stats;
        struct rxpd *prxpd;
        int need_padding;
-       unsigned int flags;
        struct ieee80211_hdr *hdr;
 
        lbtf_deb_enter(LBTF_DEB_RX);
@@ -571,7 +570,6 @@ int lbtf_rx(struct lbtf_private *priv, struct sk_buff *skb)
        skb_pull(skb, sizeof(struct rxpd));
 
        hdr = (struct ieee80211_hdr *)skb->data;
-       flags = le32_to_cpu(*(__le32 *)(skb->data + 4));
 
        need_padding = ieee80211_is_data_qos(hdr->frame_control);
        need_padding ^= ieee80211_has_a4(hdr->frame_control);