projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe6005b
)
pata_scc: kill useless check in scc_postreset()
author
Sergei Shtylyov
<sshtylyov@ru.mvista.com>
Sat, 24 Apr 2010 16:29:58 +0000
(20:29 +0400)
committer
Jeff 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/pata_scc.c
b/drivers/ata/pata_scc.c
index 1b41296a7a600f23ec490c5aa785d63266610997..77ff829af176b76725ed4f1be6e3ebeca6571b1c 100644
(file)
--- 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");
}