]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Fix set but unused variable
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 6 Jul 2020 12:33:56 +0000 (21:33 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 8 Jul 2020 05:04:46 +0000 (01:04 -0400)
commit57dac301026503cc1d6525d87948b9389d5348f4
tree91352f5a29eae611ac869bd537aa36575e4be202
parent8625a8955d52e1c8ce437d4190236e3a926f45e8
scsi: mpt3sas: Fix set but unused variable

In _config_request(), the variable issue_reset is set using the macro
mpt3sas_check_cmd_timeout() but otherwise unused, causing a compiler
warning when compiling with W=1. Avoid this warning by removing this
variable, using the function mpt3sas_base_check_cmd_timeout() directly
instead of the mpt3sas_check_cmd_timeout() macro.

Link: https://lore.kernel.org/r/20200706123356.452135-1-damien.lemoal@wdc.com
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_config.c