usb: gadget: multi: fix error return code in cdc_do_config()
authorAndrzej Pietrasiewicz <[email protected]>
Fri, 26 Jul 2013 12:37:13 +0000 (14:37 +0200)
committerFelipe Balbi <[email protected]>
Mon, 29 Jul 2013 11:15:18 +0000 (14:15 +0300)
commit8abc6fa163d40bccc80c7b1f821f2579ab26864d
tree7b79027f819f5727ca5168193727242a6fee1b47
parent3b45b2a2ad3546591cb4407b1c66921b2ee158a8
usb: gadget: multi: fix error return code in cdc_do_config()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Introduced by commit 59835a (usb: gadget: multi: use
function framework for ACM.)

Make rndis_do_config() consistent with cdc_do_config() in the way it
handles returning the PTR_ERR(f_acm_*).

Signed-off-by: Andrzej Pietrasiewicz <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Michal Nazarewicz <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
drivers/usb/gadget/multi.c