X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fscsi%2Faic7xxx_old.c;h=5dba1c63122e24c18813e35eb85168835ab993a4;hb=dbe1ab9514c231c9b062140a107d9dea0eabefcc;hp=770f1647e4d6796fde8f6b81cf1c2bc6fe80a1a7;hpb=cf41f8ac386e8d62122e7e394b4c6b3e3ab30ede;p=linux-2.6 diff --git a/drivers/scsi/aic7xxx_old.c b/drivers/scsi/aic7xxx_old.c index 770f1647e4..5dba1c6312 100644 --- a/drivers/scsi/aic7xxx_old.c +++ b/drivers/scsi/aic7xxx_old.c @@ -1565,7 +1565,7 @@ aic7xxx_check_patch(struct aic7xxx_host *p, struct sequencer_patch *last_patch; int num_patches; - num_patches = sizeof(sequencer_patches)/sizeof(struct sequencer_patch); + num_patches = ARRAY_SIZE(sequencer_patches); last_patch = &sequencer_patches[num_patches]; cur_patch = *start_patch;