mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
fe6005b81e
commit
ec86c81dfc
1 changed files with 1 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue