summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-18 15:47:40 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-19 09:52:12 +0100
commit7642d8386ac71af0666c425264c4d7380269f62c (patch)
tree7cc97c799878d6302ef6de3ed8c61c6b6a1cc9d3 /drivers/usb
parentusb: dwc2: fix spelling mistake: "genereted" -> "generated" (diff)
downloadlinux-7642d8386ac71af0666c425264c4d7380269f62c.tar.xz
linux-7642d8386ac71af0666c425264c4d7380269f62c.zip
usb: dwc3: ep0: remove redundant assignment
In dwc3_request *r = NULL; r = A; the first assignment has no effect. Remove it. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc3/ep0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 18be31d5743a..5a991bca8ed7 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -814,7 +814,7 @@ out:
static void dwc3_ep0_complete_data(struct dwc3 *dwc,
const struct dwc3_event_depevt *event)
{
- struct dwc3_request *r = NULL;
+ struct dwc3_request *r;
struct usb_request *ur;
struct dwc3_trb *trb;
struct dwc3_ep *ep0;