Commit 8607b79c authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

wl1271: fix notifier interface supported test

The "(wl == NULL)" test doesn't work here because "wl" is always
non-null.  The intent of the code is to return if the interface
was not supported by the driver.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cdd0864a
...@@ -852,7 +852,7 @@ static int wl1271_dev_notify(struct notifier_block *me, unsigned long what, ...@@ -852,7 +852,7 @@ static int wl1271_dev_notify(struct notifier_block *me, unsigned long what,
if (wl == wl_temp) if (wl == wl_temp)
break; break;
} }
if (wl == NULL) if (wl != wl_temp)
return NOTIFY_DONE; return NOTIFY_DONE;
/* Get the interface IP address for the device. "ifa" will become /* Get the interface IP address for the device. "ifa" will become
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment