speedtch usb_atm.c,1.8,1.9

David Woodhouse dwmw2 at infradead.org
Wed Oct 6 23:11:27 EDT 2004


Update of /home/cvs/speedtch
In directory phoenix.infradead.org:/tmp/cvs-serv8564

Modified Files:
	usb_atm.c 
Log Message:
conditional is good... conditional on _failure_ would have been better

Index: usb_atm.c
===================================================================
RCS file: /home/cvs/speedtch/usb_atm.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- usb_atm.c	7 Oct 2004 02:05:21 -0000	1.8
+++ usb_atm.c	7 Oct 2004 03:11:24 -0000	1.9
@@ -97,7 +97,7 @@
 #ifdef DEBUG
 #define UDSL_ASSERT(x)	BUG_ON(!(x))
 #else
-#define UDSL_ASSERT(x)	do { if (x) warn("failed assertion '" #x "' at line %d", __LINE__); } while(0)
+#define UDSL_ASSERT(x)	do { if (!(x)) warn("failed assertion '" #x "' at line %d", __LINE__); } while(0)
 #endif
 
 #ifdef VERBOSE_DEBUG




More information about the Usbatm-commits mailing list