Commit 811e5c3d authored by Hariprasad Kelam's avatar Hariprasad Kelam Committed by Felipe Balbi
Browse files

fotg210-udc: Remove unneeded variable



This patch fixes below warning reported by coccicheck

drivers/usb/gadget/udc/fotg210-udc.c:484:5-8: Unneeded variable: "ret".
Return "0" on line 507

Signed-off-by: default avatarHariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 67929a7d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -481,7 +481,6 @@ static int fotg210_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedge)
	struct fotg210_ep *ep;
	struct fotg210_udc *fotg210;
	unsigned long flags;
	int ret = 0;

	ep = container_of(_ep, struct fotg210_ep, ep);

@@ -504,7 +503,7 @@ static int fotg210_set_halt_and_wedge(struct usb_ep *_ep, int value, int wedge)
	}

	spin_unlock_irqrestore(&ep->fotg210->lock, flags);
	return ret;
	return 0;
}

static int fotg210_ep_set_halt(struct usb_ep *_ep, int value)