]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
zd1201: remove unused variable framelen
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Nov 2017 18:56:30 +0000 (18:56 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 8 Nov 2017 12:52:57 +0000 (14:52 +0200)
Variable framelen is assigned but never read, hence it is redundant
and can be removed. Cleans up clang warning:

drivers/net/wireless/zydas/zd1201.c:234:3: warning: Value stored
to 'framelen' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/zydas/zd1201.c

index 581e8577a2211b18701afcad19f2c8594352d780..253403899fe98bf6b1f7588e9591a2ea8ae24bc7 100644 (file)
@@ -230,8 +230,7 @@ static void zd1201_usbrx(struct urb *urb)
        /* Info frame */
        if (type == ZD1201_PACKET_INQUIRE) {
                int i = 0;
-               unsigned short infotype, framelen, copylen;
-               framelen = le16_to_cpu(*(__le16*)&data[4]);
+               unsigned short infotype, copylen;
                infotype = le16_to_cpu(*(__le16*)&data[6]);
 
                if (infotype == ZD1201_INF_LINKSTATUS) {