summaryrefslogtreecommitdiff
path: root/drivers/scsi/megaraid.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2024-01-18 12:14:41 +0000
committerMartin K. Petersen <martin.petersen@oracle.com>2024-01-23 21:38:18 -0500
commit9759cdc1bcb8659dae638bd0c3927eac6db9c874 (patch)
tree22c3ee1f8a5b50025a2bee0b8f28ba72f03f8dd0 /drivers/scsi/megaraid.c
parent01f256228c0f89c4b48fbc7c67b64a26cdcfd740 (diff)
downloadlwn-9759cdc1bcb8659dae638bd0c3927eac6db9c874.tar.gz
lwn-9759cdc1bcb8659dae638bd0c3927eac6db9c874.zip
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] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240118121441.2533620-1-colin.i.king@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/megaraid.c')
-rw-r--r--drivers/scsi/megaraid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index 66a30a3e6cd5..38976f94453e 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -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;