mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 06:34:12 +08:00
rtc-r9701.c: silence compiler warning
Commit 75b6102257
("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: S.Çağlar Onur <caglar@pardus.org.tr>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
91a0736531
commit
9820380a38
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user