diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-08 18:25:51 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-05-11 15:14:20 -0400 |
commit | 8607b79c794a706e6df79d44da261887c5f5def2 (patch) | |
tree | 485d97f9af55713fb9298f7a3092f0d3b50e205f /drivers/net/wireless | |
parent | cdd0864a495a4c6a6f60cae854ca962cfa1f1026 (diff) | |
download | blackbird-op-linux-8607b79c794a706e6df79d44da261887c5f5def2.tar.gz blackbird-op-linux-8607b79c794a706e6df79d44da261887c5f5def2.zip |
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: Dan Carpenter <error27@gmail.com>
Acked-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_main.c b/drivers/net/wireless/wl12xx/wl1271_main.c index b61cd102752f..55aa813c82c7 100644 --- a/drivers/net/wireless/wl12xx/wl1271_main.c +++ b/drivers/net/wireless/wl12xx/wl1271_main.c @@ -852,7 +852,7 @@ static int wl1271_dev_notify(struct notifier_block *me, unsigned long what, if (wl == wl_temp) break; } - if (wl == NULL) + if (wl != wl_temp) return NOTIFY_DONE; /* Get the interface IP address for the device. "ifa" will become |