rtl8xxxu: Remove unused len/cnt variables from rtl8xxxu_rx_complete()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 3 Feb 2016 18:39:59 +0000 (13:39 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Feb 2016 09:55:41 +0000 (11:55 +0200)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index 12018362f2b1c7e25dc48baa38435819d065628b..a6c8dabc87ba50b81c48dde5f8d30b77ce433746 100644 (file)
@@ -5034,13 +5034,11 @@ static void rtl8xxxu_rx_complete(struct urb *urb)
        struct device *dev = &priv->udev->dev;
        __le32 *_rx_desc_le = (__le32 *)skb->data;
        u32 *_rx_desc = (u32 *)skb->data;
-       int cnt, len, drvinfo_sz, desc_shift, i;
+       int drvinfo_sz, desc_shift, i;
 
        for (i = 0; i < (sizeof(struct rtl8xxxu_rx_desc) / sizeof(u32)); i++)
                _rx_desc[i] = le32_to_cpu(_rx_desc_le[i]);
 
-       cnt = rx_desc->frag;
-       len = rx_desc->pktlen;
        drvinfo_sz = rx_desc->drvinfo_sz * 8;
        desc_shift = rx_desc->shift;
        skb_put(skb, urb->actual_length);