usb: gadget: f_obex: fix error return code in obex_bind()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 6 Apr 2013 04:39:49 +0000 (12:39 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 23 Apr 2013 11:09:57 +0000 (14:09 +0300)
commit6ee3e8e63d77bb4ed686f0c92dc7aa1a8e13fefb
tree4591baf4fbe676b7445aa60b3ed09067ce869f09
parent9b192de60b5a584ee4ed967fb6758773c75e4643
usb: gadget: f_obex: fix error return code in obex_bind()

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

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_obex.c