]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
remove unnecessary code in ata_piix
authorPavel Herrmann <morpheus.ibis@gmail.com>
Thu, 27 Sep 2012 23:18:03 +0000 (23:18 +0000)
committerTom Rini <trini@ti.com>
Fri, 28 Sep 2012 17:40:30 +0000 (10:40 -0700)
We set sata_curr_device to 0 right after returning from init_sata(), so there's
no point in setting it to the last scanned driver at this point.
Note: there are more duplicities with cmd_sata, but those might be required,
as the code seems to reset the entire controller on every scan, ignoring the
requested port number.

Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
drivers/block/ata_piix.c

index c81d11a6ce35e1800ef652e75392a7dbc3f38430..1c3ab8a7333906e3e7fca1f2dd7219a951a45719 100644 (file)
@@ -204,9 +204,6 @@ init_sata (int dev)
                                dev_print (&sata_dev_desc[devno]);
                                /* initialize partition type */
                                init_part (&sata_dev_desc[devno]);
-                               if (sata_curr_device < 0)
-                                       sata_curr_device =
-                                           i * CONFIG_SYS_SATA_DEVS_PER_BUS + j;
                        }
                }
        }