projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25a5ed
)
rtc: at91sam9: remove duplicate assignment of variable mr
author
Colin Ian King
<
[email protected]
>
Mon, 28 Mar 2016 11:24:00 +0000
(12:24 +0100)
committer
Alexandre Belloni
<
[email protected]
>
Fri, 20 May 2016 10:33:51 +0000
(12:33 +0200)
mr is written twice with the same value, remove one of the
redundant assignments to mr.
Signed-off-by: Colin Ian King <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-at91sam9.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-at91sam9.c
b/drivers/rtc/rtc-at91sam9.c
index 7206e2fa43837545a11f61a5b298843678b31636..99732e6f8c3b295a9647c5d61caf4779b31d6adf 100644
(file)
--- a/
drivers/rtc/rtc-at91sam9.c
+++ b/
drivers/rtc/rtc-at91sam9.c
@@
-268,7
+268,7
@@
static int at91_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
static int at91_rtc_proc(struct device *dev, struct seq_file *seq)
{
struct sam9_rtc *rtc = dev_get_drvdata(dev);
- u32 mr =
mr =
rtt_readl(rtc, MR);
+ u32 mr = rtt_readl(rtc, MR);
seq_printf(seq, "update_IRQ\t: %s\n",
(mr & AT91_RTT_RTTINCIEN) ? "yes" : "no");