diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-06-22 22:11:56 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-06-22 22:11:56 -0400 |
commit | 71d530cd1b6d97094481002a04c77fea1c8e1c22 (patch) | |
tree | e786da7145d83c19a594adf76ed90d52c51058b1 /drivers/scsi/aic7xxx/aic7xxx_proc.c | |
parent | d7a80dad2fe19a2b8c119c8e9cba605474a75a2b (diff) | |
parent | d588fcbe5a7ba8bba2cebf7799ab2d573717a806 (diff) |
Merge branch 'master' into upstream
Conflicts:
drivers/scsi/libata-core.c
drivers/scsi/libata-scsi.c
include/linux/pci_ids.h
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_proc.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_proc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_proc.c b/drivers/scsi/aic7xxx/aic7xxx_proc.c index 04a3506cf340..5914b4aa4a8f 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_proc.c +++ b/drivers/scsi/aic7xxx/aic7xxx_proc.c | |||
@@ -77,11 +77,9 @@ static u_int | |||
77 | ahc_calc_syncsrate(u_int period_factor) | 77 | ahc_calc_syncsrate(u_int period_factor) |
78 | { | 78 | { |
79 | int i; | 79 | int i; |
80 | int num_syncrates; | ||
81 | 80 | ||
82 | num_syncrates = sizeof(scsi_syncrates) / sizeof(scsi_syncrates[0]); | ||
83 | /* See if the period is in the "exception" table */ | 81 | /* See if the period is in the "exception" table */ |
84 | for (i = 0; i < num_syncrates; i++) { | 82 | for (i = 0; i < ARRAY_SIZE(scsi_syncrates); i++) { |
85 | 83 | ||
86 | if (period_factor == scsi_syncrates[i].period_factor) { | 84 | if (period_factor == scsi_syncrates[i].period_factor) { |
87 | /* Period in kHz */ | 85 | /* Period in kHz */ |