diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2010-04-24 18:29:58 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-14 23:35:50 +0200 |
commit | ec86c81dfcc52e313920621b1d1e92343a842afe (patch) | |
tree | 7ad019d6ee8f72dd0989c915bcd499d5604b6095 | |
parent | pata_scc: make scc_wait_after_reset() static (diff) | |
download | linux-ec86c81dfcc52e313920621b1d1e92343a842afe.tar.xz linux-ec86c81dfcc52e313920621b1d1e92343a842afe.zip |
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>
-rw-r--r-- | drivers/ata/pata_scc.c | 3 |
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) } /* set up device control */ - if (ap->ioaddr.ctl_addr) - out_be32(ap->ioaddr.ctl_addr, ap->ctl); + out_be32(ap->ioaddr.ctl_addr, ap->ctl); DPRINTK("EXIT\n"); } |