diff options
author | Vivek Natarajan <nataraja@qca.qualcomm.com> | 2011-12-29 16:18:39 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-01-02 18:38:32 +0200 |
commit | 792ecb33080f4e315695e0fe21cf3a3c2a514dd0 (patch) | |
tree | 5cd06449c7fd2471905fc5c53aa3924a4663b8a8 /drivers/net/wireless/ath/ath6kl/main.c | |
parent | a10e2f2f6db8f86eaca1cf3d00269463da4d6434 (diff) | |
download | linux-792ecb33080f4e315695e0fe21cf3a3c2a514dd0.tar.gz linux-792ecb33080f4e315695e0fe21cf3a3c2a514dd0.tar.bz2 linux-792ecb33080f4e315695e0fe21cf3a3c2a514dd0.zip |
ath6kl: Remove redundant key_index check.
Less-than-zero comparison of an unsigned value is never true.
kvalo: remove WMI_MIN_KEY_INDEX altogether, it's useless
Signed-off-by: Vivek Natarajan <nataraja@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index f3d0184a5cea..f74986d62098 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c @@ -363,7 +363,7 @@ static void ath6kl_install_static_wep_keys(struct ath6kl_vif *vif) u8 index; u8 keyusage; - for (index = WMI_MIN_KEY_INDEX; index <= WMI_MAX_KEY_INDEX; index++) { + for (index = 0; index <= WMI_MAX_KEY_INDEX; index++) { if (vif->wep_key_list[index].key_len) { keyusage = GROUP_USAGE; if (index == vif->def_txkey_index) |