diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-20 12:38:18 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-22 10:52:10 +0200 |
commit | 95dbac94da7f9cff9a056fcf9c3a1679aa5ac337 (patch) | |
tree | e4b40071f79c5de6c9ad3fc928f3e82511f3ae69 /drivers/usb | |
parent | 2bda2c09625772ff4d514df183afe90c84d6d9c6 (diff) |
usb: storage: datafab: remove redundant assignment of variable result
The variable result is being assigned with a value that is
never read, the assignment is redundant and can be removed.
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20210420113818.378478-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/storage/datafab.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/storage/datafab.c b/drivers/usb/storage/datafab.c index 588818483f4b..bcc4a2fad863 100644 --- a/drivers/usb/storage/datafab.c +++ b/drivers/usb/storage/datafab.c @@ -294,7 +294,6 @@ static int datafab_write_data(struct us_data *us, if (reply[0] != 0x50 && reply[1] != 0) { usb_stor_dbg(us, "Gah! write return code: %02x %02x\n", reply[0], reply[1]); - result = USB_STOR_TRANSPORT_ERROR; goto leave; } |