ipw2x00: remove redundant variables len, ret, reason and crypt
authorColin Ian King <colin.king@canonical.com>
Wed, 11 Jul 2018 07:12:12 +0000 (08:12 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:18:16 +0000 (10:18 +0300)
commit0e139e97f58e8f844fecd77461aaad128f43b734
tree211aa96024661b4fe2ee0a1005d30b6e2afb6c10
parentd01a4e04dab7fa1002722e5d09cfd9c037767348
ipw2x00: remove redundant variables len, ret, reason and crypt

Variables len, ret, reason and crypt are assigned values that
are never read, hence they are redundant and can be removed.

Note: For the variable ret, a return code is being assigned, but
this is not returned and 0 is currently being returned, I believe
this is OK.

Cleans up clang warnings:
warning: variable 'len' set but not used [-Wunused-but-set-variable]
variable 'ret' set but not used [-Wunused-but-set-variable]
warning: variable 'reason' set but not used [-Wunused-but-set-variable]
warning: variable 'crypt' 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/intel/ipw2x00/ipw2100.c
drivers/net/wireless/intel/ipw2x00/libipw_wx.c