[PATCH] rtc: sh: fix unused variable warning

From: Anders Roxell
Date: Mon Mar 25 2019 - 06:25:03 EST


When building the driver rtc/rtc-sh a warning about unused variable
shows up:

../drivers/rtc/rtc-sh.c: In function âsh_rtc_probeâ:
../drivers/rtc/rtc-sh.c:472:18: warning: unused variable ârâ [-Wunused-variable]
struct rtc_time r;
^

Remove the declaration of the unused varable 'r'.

Fixes: 373f7f4bf4a5 ("rtc: sh: stop resetting time to epoch")
Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
---
drivers/rtc/rtc-sh.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c
index d72ee3a841ea..579b3ff5c644 100644
--- a/drivers/rtc/rtc-sh.c
+++ b/drivers/rtc/rtc-sh.c
@@ -469,7 +469,6 @@ static int __init sh_rtc_probe(struct platform_device *pdev)
{
struct sh_rtc *rtc;
struct resource *res;
- struct rtc_time r;
char clk_name[6];
int clk_id, ret;

--
2.20.1