Message ID | 20190731223917.16532-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 82e17a09c412ad981dd29c0243b73b363835899e |
Headers | show |
Series | usb: musb: remove redundant assignment to variable ret | expand |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 9f5a4819a744..2bc55e0ceace 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -1721,7 +1721,7 @@ mode_show(struct device *dev, struct device_attribute *attr, char *buf) { struct musb *musb = dev_to_musb(dev); unsigned long flags; - int ret = -EINVAL; + int ret; spin_lock_irqsave(&musb->lock, flags); ret = sprintf(buf, "%s\n", usb_otg_state_string(musb->xceiv->otg->state));