diff options
author | Felipe Balbi <balbi@ti.com> | 2015-01-27 13:24:26 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 13:25:09 -0600 |
commit | 4cd8f6d05599be8bd2052df28c805f7c2f8ff479 (patch) | |
tree | c1f5424d2ab0dc1f3a4ddf116055806184230f56 /drivers/usb/dwc3 | |
parent | 578d0b6b6171e7a7afa49e74f87c683297e9cae9 (diff) | |
download | linux-stable-4cd8f6d05599be8bd2052df28c805f7c2f8ff479.tar.gz linux-stable-4cd8f6d05599be8bd2052df28c805f7c2f8ff479.tar.bz2 linux-stable-4cd8f6d05599be8bd2052df28c805f7c2f8ff479.zip |
usb: dwc3: gadget: avoid variable shadowing
We already have both ret and dwc defined in this
same function.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 6c5e344822b9..944036d4c83d 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -1110,15 +1110,10 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) * handled. */ if (dep->stream_capable) { - int ret; - ret = __dwc3_gadget_kick_transfer(dep, 0, true); - if (ret && ret != -EBUSY) { - struct dwc3 *dwc = dep->dwc; - + if (ret && ret != -EBUSY) dev_dbg(dwc->dev, "%s: failed to kick transfers\n", dep->name); - } } return 0; |