]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
usb: misc: usbtest: remove redundant check on retval < 0
authorColin Ian King <colin.king@canonical.com>
Sun, 12 Feb 2017 18:35:18 +0000 (18:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 17:32:25 +0000 (09:32 -0800)
commitef5ec7f08d6750b4786efe8dc76184fd86f85d4c
tree711aed4d691ac85901d363789f2a5e4e8ac7d82e
parentbaa42a359e7272135aa61548aa99263be03fb668
usb: misc: usbtest: remove redundant check on retval < 0

The check for retval being less than zero is always true since
retval equal to -EPIPE at that point.  Replace the existing
conditional with just return retval.

Detected with CoverityScan, CID#114349 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/usbtest.c