public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: armada38x: Remove the unused variables
@ 2015-05-06 14:23 Gregory CLEMENT
  2015-05-14 21:48 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Gregory CLEMENT @ 2015-05-06 14:23 UTC (permalink / raw)
  To: Alessandro Zummo, Alexandre Belloni, rtc-linux; +Cc: Gregory CLEMENT, stable

When applying the fix "rtc: armada38x: Fix concurrency access in
armada38x_rtc_set_time", some spinlock using the flags variable have
been removed, but not the flags variable themselves. This commit fixes
it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Cc: <stable@vger.kernel.org> #v4.0
---
 drivers/rtc/rtc-armada38x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c
index cb70ced7e0db..2b08cac62f07 100644
--- a/drivers/rtc/rtc-armada38x.c
+++ b/drivers/rtc/rtc-armada38x.c
@@ -64,7 +64,7 @@ static void rtc_delayed_write(u32 val, struct armada38x_rtc *rtc, int offset)
 static int armada38x_rtc_read_time(struct device *dev, struct rtc_time *tm)
 {
 	struct armada38x_rtc *rtc = dev_get_drvdata(dev);
-	unsigned long time, time_check, flags;
+	unsigned long time, time_check;
 
 	mutex_lock(&rtc->mutex_time);
 	time = readl(rtc->regs + RTC_TIME);
@@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm)
 {
 	struct armada38x_rtc *rtc = dev_get_drvdata(dev);
 	int ret = 0;
-	unsigned long time, flags;
+	unsigned long time;
 
 	ret = rtc_tm_to_time(tm, &time);
 
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-14 21:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06 14:23 [PATCH] rtc: armada38x: Remove the unused variables Gregory CLEMENT
2015-05-14 21:48 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox