提交 9820380a 编写于 作者: S S.Çağlar Onur 提交者: Linus Torvalds

rtc-r9701.c: silence compiler warning

Commit 75b61022 ("rtc: add support for
Epson RTC-9701JE V4") introduced the warning

  drivers/rtc/rtc-r9701.c: In function `r9701_get_datetime':
  drivers/rtc/rtc-r9701.c:74: warning: unused variable `time'
Signed-off-by: NS.Çağlar Onur <caglar@pardus.org.tr>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 91a07365
...@@ -71,7 +71,6 @@ static int read_regs(struct device *dev, unsigned char *regs, int no_regs) ...@@ -71,7 +71,6 @@ static int read_regs(struct device *dev, unsigned char *regs, int no_regs)
static int r9701_get_datetime(struct device *dev, struct rtc_time *dt) static int r9701_get_datetime(struct device *dev, struct rtc_time *dt)
{ {
unsigned long time;
int ret; int ret;
unsigned char buf[] = { RSECCNT, RMINCNT, RHRCNT, unsigned char buf[] = { RSECCNT, RMINCNT, RHRCNT,
RDAYCNT, RMONCNT, RYRCNT }; RDAYCNT, RMONCNT, RYRCNT };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册