]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:39:17 +0000 (15:39 -0700)
commit6946296876675c23d13b3406fff1d9b933afa0c6
tree89f0887d95a8a58927460ffb0a0529eb6716ba64
parentc643e97d48c1864bf48545bf322a682a5081c66e
usb: gadget: pch_udc: Fix wrong return value

commit c802672cd36cd063bfd54d54c8c34825ab5b2357 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/pch_udc.c