Skip to content

Commit

Permalink
pata_scc: kill useless check in scc_postreset()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sergei Shtylyov authored and Jeff Garzik committed May 14, 2010
1 parent fe6005b commit ec86c81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ata/pata_scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit ec86c81

Please sign in to comment.