linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: gadget: bcm63xx_udc:remove useless variable definition
@ 2020-03-24  6:29 Tang Bin
  2020-03-24  8:35 ` Sergei Shtylyov
  0 siblings, 1 reply; 3+ messages in thread
From: Tang Bin @ 2020-03-24  6:29 UTC (permalink / raw)
  To: cernekee, balbi
  Cc: gregkh, f.fainelli, bcm-kernel-feedback-list, linux-usb,
	linux-arm-kernel, linux-kernel, Tang Bin

In this function, the variable 'rc' is assigned after this place,
so the definition is invalid.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
 drivers/usb/gadget/udc/bcm63xx_udc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/usb/gadget/udc/bcm63xx_udc.c b/drivers/usb/gadget/udc/bcm63xx_udc.c
index 54501814d..a7afa8c35 100644
--- a/drivers/usb/gadget/udc/bcm63xx_udc.c
+++ b/drivers/usb/gadget/udc/bcm63xx_udc.c
@@ -2321,8 +2321,6 @@ static int bcm63xx_udc_probe(struct platform_device *pdev)
 	if (rc)
 		return rc;
 
-	rc = -ENXIO;
-
 	/* IRQ resource #0: control interrupt (VBUS, speed, etc.) */
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0)
-- 
2.20.1.windows.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-24 11:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24  6:29 [PATCH] usb: gadget: bcm63xx_udc:remove useless variable definition Tang Bin
2020-03-24  8:35 ` Sergei Shtylyov
     [not found]   ` <202003241719218101862@cmss.chinamobile.com>
2020-03-24 11:06     ` gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).