diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-09 06:16:03 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-02-21 18:38:50 -0500 |
commit | efa66f14e2d1aaad8ad7e1664d768de74ffb665b (patch) | |
tree | 4d116cdd1a0878b813ab71f67dff3927adb63de2 /drivers/usb/gadget/printer.c | |
parent | 618b88670573020920a52e8754f4d5f216f74fdb (diff) |
USB: g_printer, fix empty if statement
A bug every C programmer makes at some point in time...
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Craig W. Nadler <craig@nadler.us>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/printer.c')
-rw-r--r-- | drivers/usb/gadget/printer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 9fdabc8fcac4..4f6bfa100f2a 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c | |||
@@ -1299,7 +1299,7 @@ printer_unbind(struct usb_gadget *gadget) | |||
1299 | printer_req_free(dev->in_ep, req); | 1299 | printer_req_free(dev->in_ep, req); |
1300 | } | 1300 | } |
1301 | 1301 | ||
1302 | if (dev->current_rx_req != NULL); | 1302 | if (dev->current_rx_req != NULL) |
1303 | printer_req_free(dev->out_ep, dev->current_rx_req); | 1303 | printer_req_free(dev->out_ep, dev->current_rx_req); |
1304 | 1304 | ||
1305 | while (!list_empty(&dev->rx_reqs)) { | 1305 | while (!list_empty(&dev->rx_reqs)) { |