diff options
author | Sergei Shtylyov <sshtylyov@ru.mvista.com> | 2010-04-24 20:29:58 +0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-14 17:35:50 -0400 |
commit | ec86c81dfcc52e313920621b1d1e92343a842afe (patch) | |
tree | 7ad019d6ee8f72dd0989c915bcd499d5604b6095 /drivers/ata | |
parent | fe6005b81e142c36f066b81ca85f80022c4ac979 (diff) | |
download | linux-ec86c81dfcc52e313920621b1d1e92343a842afe.tar.gz linux-ec86c81dfcc52e313920621b1d1e92343a842afe.tar.bz2 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>
Diffstat (limited to 'drivers/ata')
-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"); } |