]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: pch_udc: Fix wrong return value
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Thu, 12 Jan 2012 02:27:06 +0000 (11:27 +0900)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 09:34:24 +0000 (11:34 +0200)
commit71f7825e9af56d32ca94de143d5dcff1c19ddf4e
tree862c8c34512f314eb8fc57388298484c087b729a
parent1e7f6dd866c09b7ca991809ed84ffd1bb9c449e2
usb: gadget: pch_udc: Fix wrong return value

ISSUE:
If the return value of pch_udc_pcd_init() is False, the return value of
this function is unsettled.
Since pch_udc_pcd_init() always returns 0, there is not actually the issue.

CAUSE:
If pch_udc_pcd_init() is True, the variable, retval, is not set for an
appropriate value.

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/pch_udc.c