]> git.baikalelectronics.ru Git - kernel.git/commit
wl1251: check return from call to wl1251_acx_arp_ip_filter
authorColin Ian King <colin.king@canonical.com>
Tue, 26 Dec 2017 17:33:18 +0000 (17:33 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:40:36 +0000 (19:40 +0200)
commit8988504e7339ab55f34a66254374b310b9afe90b
tree55b7c27fa7f4ec874973dda01ae2783a2211b9d9
parentff67d57a5ca47baa496026a1e0eeb8641f287018
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: 7ecaee270901 ("wl1251: implement hardware ARP filtering")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wl1251/main.c