usb: gadget: function: Fixed the return value on error path
authorPavitrakumar Managutte <pavitra1729@gmail.com>
Wed, 22 Oct 2014 14:03:22 +0000 (19:33 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 23 Oct 2014 19:49:35 +0000 (14:49 -0500)
commit9b1763553a89b2a84881119eeabfccdb803bb468
treeb963040d5e02eadb9546a6caee16ea02cec2579e
parent3a8146aafcedd93e42045598802e1eb71cae68c0
usb: gadget: function: Fixed the return value on error path

Fixed the return value on failure. status variable
is set to 0 at usb_assign_descriptors call and the same is
returned on error which is incorrect.

Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Pavitrakumar Managutte <pavitra1729@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_rndis.c