summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorPavel Herrmann <morpheus.ibis@gmail.com>2012-09-27 23:18:03 +0000
committerTom Rini <trini@ti.com>2012-09-28 10:40:30 -0700
commitb726a01b76ed06a0aec3a24879f8efce2d7f7005 (patch)
tree36e9a99e2fca31fcbb65afb2fabe71d9867b258e /drivers/block
parenta10973e7fac1e0338c9c0bb79ae114d869b6200f (diff)
downloadtalos-obmc-uboot-b726a01b76ed06a0aec3a24879f8efce2d7f7005.tar.gz
talos-obmc-uboot-b726a01b76ed06a0aec3a24879f8efce2d7f7005.zip
remove unnecessary code in ata_piix
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>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/ata_piix.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c
index c81d11a6ce..1c3ab8a733 100644
--- a/drivers/block/ata_piix.c
+++ b/drivers/block/ata_piix.c
@@ -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;
}
}
}
OpenPOWER on IntegriCloud