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: https://git.stricted.de/?a=commitdiff_plain;h=ec86c81dfcc52e313920621b1d1e92343a842afe;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.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 1b41296a7a6..77ff829af17 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"); }