diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-20 12:49:19 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-05-10 19:24:07 +0200 |
commit | 807b31d8e0fce2160683746b54d7f3010a2d3cde (patch) | |
tree | 94bc77b10010ea2844866baa753e7288962530d0 /drivers/scsi/megaraid | |
parent | scsi: lpfc: Remove redundant assignment to pointer temp_hdr (diff) | |
download | linux-807b31d8e0fce2160683746b54d7f3010a2d3cde.tar.xz linux-807b31d8e0fce2160683746b54d7f3010a2d3cde.zip |
scsi: megaraid_mbox: Remove redundant initialization of pointer mbox
The pointer mbox is being initialized with a value that is never read and
it is being updated later with a new value. The initialization is
redundant and can be removed.
Link: https://lore.kernel.org/r/20210420104919.376734-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Unused value")
Diffstat (limited to 'drivers/scsi/megaraid')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mbox.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c index 145fde302d7d..d0aa384adb76 100644 --- a/drivers/scsi/megaraid/megaraid_mbox.c +++ b/drivers/scsi/megaraid/megaraid_mbox.c @@ -3240,8 +3240,6 @@ megaraid_mbox_fire_sync_cmd(adapter_t *adapter) int i; uint32_t dword; - mbox = (mbox_t *)raw_mbox; - memset((caddr_t)raw_mbox, 0, sizeof(mbox_t)); raw_mbox[0] = 0xFF; |