]> err.no Git - linux-2.6/blobdiff - drivers/scsi/aic7xxx_old.c
Merge branch 'master' into upstream
[linux-2.6] / drivers / scsi / aic7xxx_old.c
index 770f1647e4d6796fde8f6b81cf1c2bc6fe80a1a7..5dba1c63122e24c18813e35eb85168835ab993a4 100644 (file)
@@ -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;