usb: gadget: remove variable ret and remove unnecessary if statement
authorColin Ian King <colin.king@canonical.com>
Thu, 8 Sep 2016 20:09:30 +0000 (21:09 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 9 Sep 2016 10:38:37 +0000 (13:38 +0300)
commit5387c920372a3aaeb97b8b4721619ca9ff2a82ab
tree949b40d3a47fb8af00dd7b386c27ab32a6e7a399
parent2938fc63e0c26bf694436ac81bc776c8b7eced0c
usb: gadget: remove variable ret and remove unnecessary if statement

the if statement in lb_modinit is unnecessary so we can totally
remove the variable ret and just return the return value from
the call to usb_function_register.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_loopback.c