aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/usb/musb/musb_gadget.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index f37b8594edeb..36cfd060dbe5 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -1169,8 +1169,6 @@ static int musb_gadget_queue(struct usb_ep *ep, struct usb_request *req,
1169 : DMA_FROM_DEVICE); 1169 : DMA_FROM_DEVICE);
1170 request->mapped = 0; 1170 request->mapped = 0;
1171 } 1171 }
1172 } else if (!req->buf) {
1173 return -ENODATA;
1174 } else 1172 } else
1175 request->mapped = 0; 1173 request->mapped = 0;
1176 1174