scsi: megaraid_sas: Remove redundant variable cmd_type
authorColin Ian King <colin.i.king@gmail.com>
Sat, 30 Jul 2022 12:45:09 +0000 (13:45 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 1 Aug 2022 23:53:18 +0000 (19:53 -0400)
commit6464d5b8a2768e8ff63d24b76299fe614e205aa7
tree49991da428027127438095a735f0f3d44883f40a
parent554b117e8fab4f7c53090eca693f47e0c7b18490
scsi: megaraid_sas: Remove redundant variable cmd_type

The variable cmd_type is assigned a value but it is never read. The
variable and the assignment are redundant and can be removed.

Cleans up clang scan build warning:

 drivers/scsi/megaraid/megaraid_sas_fusion.c:3228:10: warning: Although
 the value stored to 'cmd_type' is used in the enclosing expression, the
 value is never actually read from 'cmd_type' [deadcode.DeadStores]

Link: https://lore.kernel.org/r/20220730124509.148457-1-colin.i.king@gmail.com
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c