aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_scc.c
diff options
context:
space:
mode:
authorSergei Shtylyov <sshtylyov@ru.mvista.com>2010-04-24 12:29:58 -0400
committerJeff Garzik <jgarzik@redhat.com>2010-05-14 17:35:50 -0400
commitec86c81dfcc52e313920621b1d1e92343a842afe (patch)
tree7ad019d6ee8f72dd0989c915bcd499d5604b6095 /drivers/ata/pata_scc.c
parentfe6005b81e142c36f066b81ca85f80022c4ac979 (diff)
pata_scc: kill useless check in scc_postreset()
The device control register exists and its address is set by scc_setup_ports(), hence the check is useless... Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_scc.c')
-rw-r--r--drivers/ata/pata_scc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/pata_scc.c b/drivers/ata/pata_scc.c
index 1b41296a7a60..77ff829af176 100644
--- a/drivers/ata/pata_scc.c
+++ b/drivers/ata/pata_scc.c
@@ -903,8 +903,7 @@ static void scc_postreset(struct ata_link *link, unsigned int *classes)
903 } 903 }
904 904
905 /* set up device control */ 905 /* set up device control */
906 if (ap->ioaddr.ctl_addr) 906 out_be32(ap->ioaddr.ctl_addr, ap->ctl);
907 out_be32(ap->ioaddr.ctl_addr, ap->ctl);
908 907
909 DPRINTK("EXIT\n"); 908 DPRINTK("EXIT\n");
910} 909}