scsi: hpsa: Remove the unused variable transMethod
Subsystems (2)
PATCH 1/1 scsi: hpsa: Remove the unused variable transMethod
Variable transMethod is not effectively used, so delete it.
drivers/scsi/hpsa.c:9478:16: warning: variable 'transMethod' set but not used.
--- drivers/scsi/hpsa.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/scsi/hpsa.c +0 -6
@@ -9475,8 +9475,6 @@ static void hpsa_free_performant_mode(struct ctlr_info *h)static int hpsa_put_ctlr_into_performant_mode (struct ctlr_info *h) {u32 trans_support; -unsigned long transMethod = CFGTBL_Trans_Performant | - CFGTBL_Trans_use_short_tags;int i, rc;if (hpsa_simple_mode)
@@ -9488,14 +9486,10 @@ static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)/* Check for I/O accelerator mode support */ if (trans_support & CFGTBL_Trans_io_accel1) { - transMethod |= CFGTBL_Trans_io_accel1 | - CFGTBL_Trans_enable_directed_msix; rc =hpsa_alloc_ioaccel1_cmd_and_bft (h);if (rc)return rc; }else if (trans_support & CFGTBL_Trans_io_accel2) { - transMethod |= CFGTBL_Trans_io_accel2 | - CFGTBL_Trans_enable_directed_msix; rc =hpsa_alloc_ioaccel2_cmd_and_bft (h);if (rc)return rc;
Signature · 1 line
2.20.1.7.g153144c
-----Original Message-----
From: Jiapeng Chong [mailto:[email protected]]
Subject: [PATCH] scsi: hpsa: Remove the unused variable transMethod
Variable transMethod is not effectively used, so delete it.
drivers/scsi/hpsa.c:9478:16: warning: variable 'transMethod' set but not used.
Thanks for your patch.
--- drivers/scsi/hpsa.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/scsi/hpsa.c +0 -6
@@ -9475,8 +9475,6 @@ static void hpsa_free_performant_mode(struct ctlr_info *h) static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h) {u32 trans_support; -unsigned long transMethod = CFGTBL_Trans_Performant | - CFGTBL_Trans_use_short_tags;int i, rc;if (hpsa_simple_mode)
@@ -9488,14 +9486,10 @@ static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)/* Check for I/O accelerator mode support */ if (trans_support & CFGTBL_Trans_io_accel1) { - transMethod |= CFGTBL_Trans_io_accel1 | - CFGTBL_Trans_enable_directed_msix; rc =hpsa_alloc_ioaccel1_cmd_and_bft (h);if (rc)return rc; }else if (trans_support & CFGTBL_Trans_io_accel2) { - transMethod |= CFGTBL_Trans_io_accel2 | - CFGTBL_Trans_enable_directed_msix; rc =hpsa_alloc_ioaccel2_cmd_and_bft (h);if (rc)return rc;
--
2.20.1.7.g153144c
Martin K. Petersen
AppliedJiapeng,
Quoted 4 lines
Variable transMethod is not effectively used, so delete it.
drivers/scsi/hpsa.c:9478:16: warning: variable 'transMethod' set but not used.
Applied to 6.4/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 5 lines · Jiapeng Chong
Variable transMethod is not effectively used, so delete it.
drivers/scsi/hpsa.c:9478:16: warning: variable 'transMethod' set but not used.
Applied to 6.4/scsi-queue, thanks!
[1/1] scsi: hpsa: Remove the unused variable transMethod
https://git.kernel.org/mkp/scsi/c/d93523877e6f
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering