Search Linux Wireless

[PATCH 1/2] compat: avoid warning in compat_system_workqueue_create

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

 



The check in the WARN_ON is inverted.

Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx>
---
 compat/compat-2.6.36.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/compat/compat-2.6.36.c b/compat/compat-2.6.36.c
index aab25df..fe24da8 100644
--- a/compat/compat-2.6.36.c
+++ b/compat/compat-2.6.36.c
@@ -99,7 +99,7 @@ EXPORT_SYMBOL_GPL(system_nrt_wq);
 void compat_system_workqueue_create()
 {
 	system_nrt_wq = create_singlethread_workqueue("events_nrt");
-	WARN_ON(system_nrt_wq);
+	WARN_ON(!system_nrt_wq);
 }
 
 void compat_system_workqueue_destroy()
-- 
1.7.4.4

--
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