]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ath6kl: Change ielen in ath6kl_add_new_sta() from u8 to size_t
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Tue, 3 Jan 2012 09:58:53 +0000 (15:28 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 9 Jan 2012 10:46:13 +0000 (12:46 +0200)
Otherwise if (ielen <= ATH6KL_MAX_IE) is dead code. It looks safe to
change the type of ielen from u8 to size_t instead of removing this
if check, this ielen can have the length of more than one ies in future.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/main.c

index d764768f8f7ad84ebabe637ddd708d7007077841..325d316f40ece50054771ba6e5241f33ec1f4fcd 100644 (file)
@@ -53,7 +53,7 @@ struct ath6kl_sta *ath6kl_find_sta_by_aid(struct ath6kl *ar, u8 aid)
 }
 
 static void ath6kl_add_new_sta(struct ath6kl *ar, u8 *mac, u16 aid, u8 *wpaie,
-                       u8 ielen, u8 keymgmt, u8 ucipher, u8 auth)
+                       size_t ielen, u8 keymgmt, u8 ucipher, u8 auth)
 {
        struct ath6kl_sta *sta;
        u8 free_slot;