Commit efa66f14 authored by Adrian Bunk's avatar Adrian Bunk Committed by Greg Kroah-Hartman

USB: g_printer, fix empty if statement

A bug every C programmer makes at some point in time...
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarCraig W. Nadler <craig@nadler.us>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 618b8867
...@@ -1299,7 +1299,7 @@ printer_unbind(struct usb_gadget *gadget) ...@@ -1299,7 +1299,7 @@ printer_unbind(struct usb_gadget *gadget)
printer_req_free(dev->in_ep, req); 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); printer_req_free(dev->out_ep, dev->current_rx_req);
while (!list_empty(&dev->rx_reqs)) { while (!list_empty(&dev->rx_reqs)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment