OSDN Git Service

usb: gadget: bcm63xx_udc: Use common error handling code in bcm63xx_udc_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 4 Nov 2017 21:02:46 +0000 (22:02 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:36:52 +0000 (12:36 +0200)
commit3700df921401b336bc03043c7d49c32bc2419b13
tree90188dc776e88e5def2cba0d787018023f4561d3
parent71a9fda36829273eac4770dd539c80303969c5d8
usb: gadget: bcm63xx_udc: Use common error handling code in bcm63xx_udc_probe()

Add a jump target so that a specific error message is stored only once
at the end of this function implementation.
Replace two calls of the function "dev_err" by goto statements.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/bcm63xx_udc.c