usb: storage: datafab: remove redundant assignment of variable result
Subsystems (3)
PATCH 1/1 usb: storage: datafab: remove redundant assignment of variable result
From: Colin Ian King <[email protected]>
The variable result is being assigned with a value that is never read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>
--- drivers/usb/storage/datafab.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/storage/datafab.c +0 -1
@@ -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; }
Signature · 1 line
2.30.2
Quoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
The variable result is being assigned with a value that is never read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by Colin Ian King <[email protected]>---
Acked-by Alan Stern <[email protected]>
Quoted 18 lines
drivers/usb/storage/datafab.c | 1 - 1 file changed, 1 deletion(-)drivers/usb/storage/datafab.c +0
-1@@ -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; }Signature · 1 line
2.30.2