]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: correctly check if associatedsta has not been found
authorColin Ian King <colin.king@canonical.com>
Mon, 15 Aug 2016 16:09:52 +0000 (17:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:28:21 +0000 (17:28 +0200)
commit98122570bb6320b2439ff06aa79112af52643bfc
tree0e04c8d02c6eab8cb173a8848196b4c00f8153e1
parentc58f19d44701af3dc5ca393fb5b1640418e98050
staging: wilc1000: correctly check if associatedsta has not been found

The current check for associatedsta being set to -1 to indicate it has
not been found is not working because associatedsta is initialized to
zero and will never be -1.  Fix this by initializing it to ~0 and checking
for ~0 instead.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c