aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-08 12:25:51 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-05-11 15:14:20 -0400
commit8607b79c794a706e6df79d44da261887c5f5def2 (patch)
tree485d97f9af55713fb9298f7a3092f0d3b50e205f /drivers/net
parentcdd0864a495a4c6a6f60cae854ca962cfa1f1026 (diff)
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')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_main.c2
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,
852 if (wl == wl_temp) 852 if (wl == wl_temp)
853 break; 853 break;
854 } 854 }
855 if (wl == NULL) 855 if (wl != wl_temp)
856 return NOTIFY_DONE; 856 return NOTIFY_DONE;
857 857
858 /* Get the interface IP address for the device. "ifa" will become 858 /* Get the interface IP address for the device. "ifa" will become