OSDN Git Service

ath6kl: remove redundant variables netlen, orig_buf, orig_len, dropped and stats
authorColin Ian King <colin.king@canonical.com>
Mon, 9 Jul 2018 13:17:20 +0000 (14:17 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Jul 2018 17:57:05 +0000 (20:57 +0300)
commit619c9700a8fe017bdbe60e08c21213962b2de87a
tree5296260abcb6655b85dfe4a379ea700a25cd8b88
parente8c38062efc6ffa38f602eb8ffb8c8b03bcf2b5f
ath6kl: remove redundant variables netlen, orig_buf, orig_len, dropped and stats

Variables netlen, orig_buf, orig_len, dropped and stats are assigned values
but are never used hence they are redundant and can be removed.

Cleans up clang warnings:
warning: variable 'netlen' set but not used [-Wunused-but-set-variable]
warning: variable 'orig_buf' set but not used [-Wunused-but-set-variable]
warning: variable 'orig_len' set but not used [-Wunused-but-set-variable]
warning: variable 'dropped' set but not used [-Wunused-but-set-variable]
warning: variable 'stats' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath6kl/htc_pipe.c
drivers/net/wireless/ath/ath6kl/main.c
drivers/net/wireless/ath/ath6kl/txrx.c