iwlegacy: remove several redundant variables
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Jul 2018 07:42:53 +0000 (08:42 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:19:07 +0000 (10:19 +0300)
commit454127ad36fb11ee212f487b2640dd82373f3b0c
treea99ab04ef6f7112cae90d4622dd596170e53afde
parent0e139e97f58e8f844fecd77461aaad128f43b734
iwlegacy: remove several redundant variables

Variables id, unicast, write, conf, a_band, accum_tx and ucode are
assigned a value but it is never read, hence they are redundant and
can be removed.

Cleans up clang warnings:
warning: variable 'id' set but not used [-Wunused-but-set-variable]
warning: variable 'unicast' set but not used [-Wunused-but-set-variable]
warning: variable 'write' set but not used [-Wunused-but-set-variable]
warning: variable 'conf' set but not used [-Wunused-but-set-variable]
warning: variable 'a_band' set but not used [-Wunused-but-set-variable]
warning: variable 'tx' set but not used [-Wunused-but-set-variable]
warning: variable 'accum_tx' set but not used [-Wunused-but-set-variable]
warning: variable 'ucode' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlegacy/3945-mac.c
drivers/net/wireless/intel/iwlegacy/3945.c
drivers/net/wireless/intel/iwlegacy/4965-mac.c