From: Colin Ian King Date: Mon, 28 Mar 2016 11:24:00 +0000 (+0100) Subject: rtc: at91sam9: remove duplicate assignment of variable mr X-Git-Tag: v4.7-rc1~86^2~38 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=df2d741f0e00669b94d675564f92949752a5d241;p=linux-2.6-block.git rtc: at91sam9: remove duplicate assignment of variable mr mr is written twice with the same value, remove one of the redundant assignments to mr. Signed-off-by: Colin Ian King Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 7206e2fa4383..99732e6f8c3b 100644 --- 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");