Commit 10770c5a authored by Matthias Brugger's avatar Matthias Brugger Committed by Felipe Balbi

usb: musb: omap2430.c delete unused variable.

Variable ret is always evaluated as true, so we don't need to check it.
Signed-off-by: default avatarMatthias Brugger <mbrugger@iseebcn.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 12a19b5f
...@@ -141,7 +141,6 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on) ...@@ -141,7 +141,6 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
struct usb_otg *otg = musb->xceiv->otg; struct usb_otg *otg = musb->xceiv->otg;
u8 devctl; u8 devctl;
unsigned long timeout = jiffies + msecs_to_jiffies(1000); unsigned long timeout = jiffies + msecs_to_jiffies(1000);
int ret = 1;
/* HDRC controls CPEN, but beware current surges during device /* HDRC controls CPEN, but beware current surges during device
* connect. They can trigger transient overcurrent conditions * connect. They can trigger transient overcurrent conditions
* that must be ignored. * that must be ignored.
...@@ -168,12 +167,11 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on) ...@@ -168,12 +167,11 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
|| loops-- <= 0) { || loops-- <= 0) {
dev_err(musb->controller, dev_err(musb->controller,
"configured as A device timeout"); "configured as A device timeout");
ret = -EINVAL;
break; break;
} }
} }
if (ret && otg->set_vbus) if (otg->set_vbus)
otg_set_vbus(otg, 1); otg_set_vbus(otg, 1);
} else { } else {
musb->is_active = 1; musb->is_active = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment