Search Linux Wireless

[PATCH] b43: Remove WARN_ON for rfkill not registered

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When the latest set of rfkill patches are applied, b43 hits a WARN_ON that
rfkill has not been registered. The test is needed, but not the warning.

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---

John,

This is 2.6.31 material.

Larry
---

Index: wireless-testing/drivers/net/wireless/b43/rfkill.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/b43/rfkill.c
+++ wireless-testing/drivers/net/wireless/b43/rfkill.c
@@ -74,7 +74,7 @@ static int b43_rfkill_soft_set(void *dat
 	struct b43_wl *wl = dev->wl;
 	int err = -EINVAL;
 
-	if (WARN_ON(!wl->rfkill.registered))
+	if (!wl->rfkill.registered)
 		return -EINVAL;
 
 	mutex_lock(&wl->mutex);
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux