scsi: megaraid: remove redundant assignment to variable retval
Subsystems (3)
PATCH 1/1 scsi: megaraid: remove redundant assignment to variable retval
The variable retval is being assigned a value that is not being read afterwards. The assignment is redundant and can be removed.
Cleans up clang scan warning:
Although the value stored to 'retval' is used in the enclosing expression, the value is never actually read from 'retval' [deadcode.DeadStores]
--- drivers/scsi/megaraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/megaraid.c +1 -1
@@ -219,7 +219,7 @@ mega_query_adapter(adapter_t *adapter) raw_mbox[3 ] =ENQ3_GET_SOLICITED_FULL ;/* i.e. 0x02 */ /* Issue a blocking command to the card */ -if ((retval =issue_scb_block (adapter, raw_mbox))) { +if (issue_scb_block (adapter, raw_mbox)) {/* the adapter does not support 40ld */ mraid_ext_inquiry *ext_inq;
Signature · 1 line
2.39.2
Martin K. Petersen
AppliedColin,
Quoted 2 lines
The variable retval is being assigned a value that is not being read afterwards. The assignment is redundant and can be removed.
Applied to 6.9/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 9 lines · Colin Ian King
The variable retval is being assigned a value that is not being read afterwards. The assignment is redundant and can be removed.
Cleans up clang scan warning:
Although the value stored to 'retval' is used in the enclosing expression, the value is never actually read from 'retval' [deadcode.DeadStores][...]
Applied to 6.9/scsi-queue, thanks!
[1/1] scsi: megaraid: remove redundant assignment to variable retval
https://git.kernel.org/mkp/scsi/c/9759cdc1bcb8
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering