Skip to content

Commit

Permalink
Fix USB gadget net2280.c compile
Browse files Browse the repository at this point in the history
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 <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Linus Torvalds committed Oct 18, 2006
1 parent 699ddda commit 9950421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/gadget/net2280.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9950421

Please sign in to comment.