Skip to content

Commit

Permalink
USB: g_printer, fix empty if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Greg Kroah-Hartman committed Feb 21, 2008
1 parent 618b886 commit efa66f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit efa66f1

Please sign in to comment.