Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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