Skip to content

Commit 8321c2e

Browse files
rtc: tegra: remove set but unused variable
Fix the following warning: drivers/rtc/rtc-tegra.c: In function ‘tegra_rtc_read_time’: drivers/rtc/rtc-tegra.c:106:11: warning: variable ‘msec’ set but not used [-Wunused-but-set-variable] Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Acked-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 863d7b1 commit 8321c2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/rtc/rtc-tegra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm)
103103
{
104104
struct tegra_rtc_info *info = dev_get_drvdata(dev);
105105
unsigned long flags;
106-
u32 sec, msec;
106+
u32 sec;
107107

108108
/*
109109
* RTC hardware copies seconds to shadow seconds when a read of
110110
* milliseconds occurs. use a lock to keep other threads out.
111111
*/
112112
spin_lock_irqsave(&info->lock, flags);
113113

114-
msec = readl(info->base + TEGRA_RTC_REG_MILLI_SECONDS);
114+
readl(info->base + TEGRA_RTC_REG_MILLI_SECONDS);
115115
sec = readl(info->base + TEGRA_RTC_REG_SHADOW_SECONDS);
116116

117117
spin_unlock_irqrestore(&info->lock, flags);

0 commit comments

Comments
 (0)