From: Sergei Shtylyov Date: Sat, 24 Apr 2010 16:29:58 +0000 (+0400) Subject: pata_scc: kill useless check in scc_postreset() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ec86c81dfcc52e313920621b1d1e92343a842afe;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Jeff Garzik --- 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"); }