Skip to content

Commit aed922f

Browse files
Colin Ian Kingmartinkpetersen
authored andcommitted
scsi: aic7xxx: remove unused redundant variable num_chip_names
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 <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 5b075ef commit aed922f

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/scsi/aic7xxx/aic79xx_core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ static const char *const ahd_chip_names[] =
5252
"aic7902",
5353
"aic7901A"
5454
};
55-
static const u_int num_chip_names = ARRAY_SIZE(ahd_chip_names);
5655

5756
/*
5857
* Hardware error codes.

‎drivers/scsi/aic7xxx/aic7xxx_core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ static const char *const ahc_chip_names[] = {
6161
"aic7892",
6262
"aic7899"
6363
};
64-
static const u_int num_chip_names = ARRAY_SIZE(ahc_chip_names);
6564

6665
/*
6766
* Hardware error codes.

0 commit comments

Comments
 (0)