diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-07 18:56:30 +0000 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-11-08 14:52:57 +0200 |
commit | 03e40f1e76808886f452b61761a292ddad25f43f (patch) | |
tree | 783df2732775a554aace7ee19b1732ba991dfe57 /drivers/net/wireless/zydas | |
parent | 9b741b2a3148250e652f9dfc1a5bbc4410ec1a57 (diff) | |
download | linux-03e40f1e76808886f452b61761a292ddad25f43f.tar.bz2 |
zd1201: remove unused variable framelen
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>
Diffstat (limited to 'drivers/net/wireless/zydas')
-rw-r--r-- | drivers/net/wireless/zydas/zd1201.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/zydas/zd1201.c b/drivers/net/wireless/zydas/zd1201.c index 581e8577a221..253403899fe9 100644 --- a/drivers/net/wireless/zydas/zd1201.c +++ b/drivers/net/wireless/zydas/zd1201.c @@ -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) { |