staging: emxx_udc: Remove cleanup1 label
The cleanup1 label does nothing but return. Better way is to return immediately instead of using goto. Hence, removed. Signed-off-by: Ravi Teja Darbha <ravi2j@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
706eb8cfb1
commit
c648a57ae5
|
@ -3284,14 +3284,14 @@ static int nbu2ss_drv_probe(struct platform_device *pdev)
|
||||||
/* USB Function Controller Interrupt */
|
/* USB Function Controller Interrupt */
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
dev_err(udc->dev, "request_irq(USB_UDC_IRQ_1) failed\n");
|
dev_err(udc->dev, "request_irq(USB_UDC_IRQ_1) failed\n");
|
||||||
goto cleanup1;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Driver Initialization */
|
/* Driver Initialization */
|
||||||
status = nbu2ss_drv_contest_init(pdev, udc);
|
status = nbu2ss_drv_contest_init(pdev, udc);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
/* Error */
|
/* Error */
|
||||||
goto cleanup1;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* VBUS Interrupt */
|
/* VBUS Interrupt */
|
||||||
|
@ -3304,13 +3304,10 @@ static int nbu2ss_drv_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
if (status != 0) {
|
if (status != 0) {
|
||||||
dev_err(udc->dev, "request_irq(INT_VBUS) failed\n");
|
dev_err(udc->dev, "request_irq(INT_VBUS) failed\n");
|
||||||
goto cleanup1;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
cleanup1:
|
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Reference in a new issue