scsi: megaraid_sas: Fix a compilation warning
authorQian Cai <cai@lca.pw>
Fri, 26 Jul 2019 14:25:43 +0000 (10:25 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 01:29:49 +0000 (21:29 -0400)
commite5460f084b84f06756e558fbfd2313202fb1dbd0
treeb90d0b5aefeadb7a5ae5b264c6cd999570883bd7
parent88d5c343949ed4dc7547f307bbbb1aff3e9fa1d4
scsi: megaraid_sas: Fix a compilation warning

The commit de516379e85f ("scsi: megaraid_sas: changes to function
prototypes") introduced a comilation warning due to it changed the function
prototype of read_fw_status_reg() to take an instance pointer instead, but
forgot to remove an unused variable.

drivers/scsi/megaraid/megaraid_sas_fusion.c: In function
'megasas_fusion_update_can_queue':
drivers/scsi/megaraid/megaraid_sas_fusion.c:326:39: warning: variable
'reg_set' set but not used [-Wunused-but-set-variable]
  struct megasas_register_set __iomem *reg_set;
                                       ^~~~~~~
Fixes: de516379e85f ("scsi: megaraid_sas: changes to function prototypes")
Signed-off-by: Qian Cai <cai@lca.pw>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c