Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iwlegacy: Remove redundant variable "ret"

local variable "ret" is not used. hence it is safe to remove and
just return 0.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

authored by

zhong jiang and committed by
Kalle Valo
ea7ad5f1 e3108132

+1 -2
+1 -2
drivers/net/wireless/intel/iwlegacy/4965-mac.c
··· 3331 3331 struct ieee80211_key_conf *keyconf, u8 sta_id) 3332 3332 { 3333 3333 unsigned long flags; 3334 - int ret = 0; 3335 3334 __le16 key_flags = 0; 3336 3335 3337 3336 key_flags |= (STA_KEY_FLG_TKIP | STA_KEY_FLG_MAP_KEY_MSK); ··· 3367 3368 3368 3369 spin_unlock_irqrestore(&il->sta_lock, flags); 3369 3370 3370 - return ret; 3371 + return 0; 3371 3372 } 3372 3373 3373 3374 void