pata_scc: kill useless check in scc_postreset()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 24 Apr 2010 16:29:58 +0000 (20:29 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 14 May 2010 21:35:50 +0000 (17:35 -0400)
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>
drivers/ata/pata_scc.c

index 1b41296a7a600f23ec490c5aa785d63266610997..77ff829af176b76725ed4f1be6e3ebeca6571b1c 100644 (file)
@@ -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");
 }