scsi: aic7xxx: remove unused redundant variable num_chip_names
Subsystems (3)
PATCH 1/1 scsi: aic7xxx: remove unused redundant variable num_chip_names
From: Colin Ian King <[email protected]>
Variable num_chip_names is defined but not used, hence it is redundant and can be removed.
Cleans up clang warning:
'num_chip_names' defined but not used [-Wunused-const-variable=]
Signed-off-by Colin Ian King <[email protected]>
--- drivers/scsi/aic7xxx/aic79xx_core.c | 1 - drivers/scsi/aic7xxx/aic7xxx_core.c | 1 - 2 files changed, 2 deletions(-)
drivers/scsi/aic7xxx/aic79xx_core.c +0 -1
@@ -52,7 +52,6 @@ static const char *const ahd_chip_names[] "aic7902", "aic7901A" }; -static const u_int num_chip_names =ARRAY_SIZE (ahd_chip_names);/* * Hardware error codes.
drivers/scsi/aic7xxx/aic7xxx_core.c +0 -1
@@ -61,7 +61,6 @@ static const char *const ahc_chip_names[] = {"aic7892" , "aic7899" }; -static const u_int num_chip_names =ARRAY_SIZE (ahc_chip_names);/* * Hardware error codes.
Signature · 1 line
2.17.1
Martin K. Petersen
AppliedColin,
Quoted 2 lines
Variable
num_chip_namesis defined but not used, hence it is redundant and can be removed.
Applied to 4.20/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering