From: Linus Torvalds Date: Wed, 18 Oct 2006 01:03:33 +0000 (-0700) Subject: Fix USB gadget net2280.c compile X-Git-Tag: v3.12-rc1~31920^2~47^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9950421c1e90d08d52ef47df1fcebe6078b04af3;p=kernel%2Fkernel-generic.git Fix USB gadget net2280.c compile It would fail the compile due to the newly added error checking testing a bad macro for a "return value" unless USB_GADGET_DEBUG_FILES was enabled. Pointed out by Stephen Hemminger. Acked-by: Stephen Hemminger Signed-off-by: Linus Torvalds --- diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 7cfe0e5..3acc896 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c @@ -1774,8 +1774,8 @@ static DEVICE_ATTR (queues, S_IRUGO, show_queues, NULL); #else -#define device_create_file(a,b) do {} while (0) -#define device_remove_file device_create_file +#define device_create_file(a,b) (0) +#define device_remove_file(a,b) do { } while (0) #endif