projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91a0736
)
rtc-r9701.c: silence compiler warning
author
S.Çağlar Onur
<
[email protected]
>
Sun, 10 Feb 2008 03:10:48 +0000
(
05:10
+0200)
committer
Linus Torvalds
<
[email protected]
>
Sun, 10 Feb 2008 07:27:01 +0000
(23:27 -0800)
Commit
75b6102257874a4ea796af686de2f72cfa0452f9
("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 <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-r9701.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-r9701.c
b/drivers/rtc/rtc-r9701.c
index a64626a82d0b34bfc7c7e4ce1f0c7afe3bf14e8a..b35f9bfa2af4db00df60d0ae74cec8bc0251dfd2 100644
(file)
--- a/
drivers/rtc/rtc-r9701.c
+++ b/
drivers/rtc/rtc-r9701.c
@@
-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)
{
- unsigned long time;
int ret;
unsigned char buf[] = { RSECCNT, RMINCNT, RHRCNT,
RDAYCNT, RMONCNT, RYRCNT };