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: NSebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: NPavitrakumar Managutte <pavitra1729@gmail.com> Signed-off-by: NFelipe Balbi <balbi@ti.com>
Showing
想要评论请 注册 或 登录