usb: usbip: remove null check
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 6 Jun 2016 21:23:32 +0000 (22:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:18:39 +0000 (22:18 -0700)
commit7c348f1cfb6d8c6911fcb6d13b4c267a8bc93856
tree9f56caf6b7dfe6b728dd1bf825857c7f21f7bd38
parent600bb2160546d3310f8f01838b6088569c1b6fdb
usb: usbip: remove null check

The only caller of get_gadget_descs() has already dereferenced udc
before calling this function, so udc can not be NULL at this point of
the code and hence no use of checking it.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_sysfs.c