mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
wl1251: check return from call to wl1251_acx_arp_ip_filter
Currently the less than zero error check on ret is incorrect
as it is checking a far earlier ret assignment rather than the
return from the call to wl1251_acx_arp_ip_filter. Fix this by
adding in the missing assginment.
Detected by CoverityScan, CID#1164835 ("Logically dead code")
Fixes: 204cc5c44f
("wl1251: implement hardware ARP filtering")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
6dd80efd75
commit
ac1181c608
1 changed files with 1 additions and 2 deletions
|
@ -1200,8 +1200,7 @@ static void wl1251_op_bss_info_changed(struct ieee80211_hw *hw,
|
|||
WARN_ON(wl->bss_type != BSS_TYPE_STA_BSS);
|
||||
|
||||
enable = bss_conf->arp_addr_cnt == 1 && bss_conf->assoc;
|
||||
wl1251_acx_arp_ip_filter(wl, enable, addr);
|
||||
|
||||
ret = wl1251_acx_arp_ip_filter(wl, enable, addr);
|
||||
if (ret < 0)
|
||||
goto out_sleep;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue