[U-Boot] [PATCH 1/1] usb: dwc3: remove superfluous assignment
Marek Vasut
marex at denx.de
Sun Mar 18 12:10:22 UTC 2018
On 03/18/2018 01:00 PM, Heinrich Schuchardt wrote:
> In
>
> struct dwc3_request *r = NULL;
> r = A;
>
> the first assignment has no effect. Remove it.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
The driver is imported from Linux, did you fix it in Linux too ?
> ---
> drivers/usb/dwc3/ep0.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
> index e61d98046f..2719984603 100644
> --- a/drivers/usb/dwc3/ep0.c
> +++ b/drivers/usb/dwc3/ep0.c
> @@ -767,7 +767,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;
>
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list