[PATCH] 2.6.19-rc2-mm1: make net2280 compile without CONFIG_USB_GADGET_DEBUG_FILES

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

 



If CONFIG_USB_GADGET_DEBUG_FILES is disabled, net2280 #defines 
device_create_file(a,b) to do {} while (0).
Later on, it does result = device_create_file(.....)

Signed-off-by: Bernhard Rosenkraenzer <[email protected]>

--- linux-2.6.18/drivers/usb/gadget/net2280.c.ark	2006-10-19 
16:38:59.000000000 +0200
+++ linux-2.6.18/drivers/usb/gadget/net2280.c	2006-10-19 17:18:36.000000000 
+0200
@@ -1774,7 +1774,7 @@
 
 #else
 
-#define device_create_file(a,b)	do {} while (0)
+#define device_create_file(a,b)	0
 #define device_remove_file	device_create_file
 
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux