]> git.hungrycats.org Git - linux/commitdiff
[PATCH] aacraid: adapter naming fix
authorMark Haverkamp <markh@osdl.org>
Tue, 15 Mar 2005 04:42:54 +0000 (22:42 -0600)
committerJames Bottomley <jejb@titanic.il.steeleye.com>
Tue, 15 Mar 2005 04:42:54 +0000 (22:42 -0600)
From Mark Salyzyn at Adaptec.

This fixes the way the aac device's id is calculated.

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/linit.c

index 5e75aed87a70f09dda432225d840413bc8fa490f..c9b82687ba1aa5c59bd3bfd2d5fda40d7d3ea762 100644 (file)
@@ -573,10 +573,9 @@ static int __devinit aac_probe_one(struct pci_dev *pdev,
        int unique_id = 0;
 
        list_for_each_entry(aac, &aac_devices, entry) {
-               if (aac->id > unique_id) {
-                       insert = &aac->entry;
+               if (aac->id > unique_id)
                        break;
-               }
+               insert = &aac->entry;
                unique_id++;
        }