]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: misc: adutux: remove redundant error check on copy_to_user return code
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Feb 2017 11:51:48 +0000 (11:51 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:05:10 +0000 (10:05 +0100)
commit453785c64e090d9b4169636b7276fcd6d7489d33
treef5788a91de5c24eabafea96a8f13487a72a2ec94
parent4f8c483ab4e96cb8ee18f307319141693434dc4e
usb: misc: adutux: remove redundant error check on copy_to_user return code

The 2nd check for a non-zero return from copy_to_user is redundant as
it is has already been made a few lines earlier.  This check was made
redundant because of previous fix to the copy_to_user error return
check.

Detected by CoverityScan, CID#114347 ("Logically Dead Code")

Fixes: 1865a9c382ede ("USB: adutux: fix misuse of return value of copy_to_user()")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/adutux.c