Skip to content

Commit d935238

Browse files
wb-zjp846396martinkpetersen
authored andcommitted
scsi: hpsa: Remove unused variable transMethod
The variable transMethod is not used. Delete it. drivers/scsi/hpsa.c:9478:16: warning: variable 'transMethod' set but not used. Reported-by: Abaci Robot <abaci@linux.alibaba.com> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4554 Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Link: https://lore.kernel.org/r/20230317054940.86685-1-jiapeng.chong@linux.alibaba.com Acked-by: Don Brace <don.brace@microchip.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent e05c006 commit d935238

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/scsi/hpsa.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9475,8 +9475,6 @@ static void hpsa_free_performant_mode(struct ctlr_info *h)
94759475
static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)
94769476
{
94779477
u32 trans_support;
9478-
unsigned long transMethod = CFGTBL_Trans_Performant |
9479-
CFGTBL_Trans_use_short_tags;
94809478
int i, rc;
94819479

94829480
if (hpsa_simple_mode)
@@ -9488,14 +9486,10 @@ static int hpsa_put_ctlr_into_performant_mode(struct ctlr_info *h)
94889486

94899487
/* Check for I/O accelerator mode support */
94909488
if (trans_support & CFGTBL_Trans_io_accel1) {
9491-
transMethod |= CFGTBL_Trans_io_accel1 |
9492-
CFGTBL_Trans_enable_directed_msix;
94939489
rc = hpsa_alloc_ioaccel1_cmd_and_bft(h);
94949490
if (rc)
94959491
return rc;
94969492
} else if (trans_support & CFGTBL_Trans_io_accel2) {
9497-
transMethod |= CFGTBL_Trans_io_accel2 |
9498-
CFGTBL_Trans_enable_directed_msix;
94999493
rc = hpsa_alloc_ioaccel2_cmd_and_bft(h);
95009494
if (rc)
95019495
return rc;

0 commit comments

Comments
 (0)