usb: dwc3: ep0: remove redundant assignment
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 14:47:40 +0000 (15:47 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 19 Mar 2018 08:52:12 +0000 (10:52 +0200)
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>
drivers/usb/dwc3/ep0.c

index 18be31d..5a991bc 100644 (file)
@@ -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;