From: Adrian Bunk Date: Sat, 9 Feb 2008 11:16:03 +0000 (-0800) Subject: USB: g_printer, fix empty if statement X-Git-Tag: v2.6.25-rc3~98^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=efa66f14e2d1aaad8ad7e1664d768de74ffb665b;p=linux-2.6-omap-h63xx.git USB: g_printer, fix empty if statement A bug every C programmer makes at some point in time... Signed-off-by: Adrian Bunk Signed-off-by: Craig W. Nadler Signed-off-by: David Brownell Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/printer.c b/drivers/usb/gadget/printer.c index 9fdabc8fcac..4f6bfa100f2 100644 --- a/drivers/usb/gadget/printer.c +++ b/drivers/usb/gadget/printer.c @@ -1299,7 +1299,7 @@ printer_unbind(struct usb_gadget *gadget) printer_req_free(dev->in_ep, req); } - if (dev->current_rx_req != NULL); + if (dev->current_rx_req != NULL) printer_req_free(dev->out_ep, dev->current_rx_req); while (!list_empty(&dev->rx_reqs)) {