From: Pavel Herrmann Date: Thu, 27 Sep 2012 23:18:03 +0000 (+0000) Subject: remove unnecessary code in ata_piix X-Git-Tag: v2012.10-rc2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b726a01b76ed06a0aec3a24879f8efce2d7f7005;p=platform%2Fkernel%2Fu-boot.git 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 --- diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c index c81d11a..1c3ab8a 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; } } }