projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
503acc8
)
sparc64: Fix return value in update_persistent_clock().
author
David S. Miller
<davem@davemloft.net>
Wed, 10 Sep 2008 20:35:08 +0000
(13:35 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Sep 2008 20:35:08 +0000
(13:35 -0700)
Noticed by Stephen Rothwell.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/time.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/sparc64/kernel/time.c
b/arch/sparc64/kernel/time.c
index 8a2fa0eb66029a83a3f0dfb9fa36f62ddb0ede65..8d2ca04d309e26b7734fdbec88d2db8e0ad2be2f 100644
(file)
--- a/
arch/sparc64/kernel/time.c
+++ b/
arch/sparc64/kernel/time.c
@@
-396,14
+396,14
@@
static unsigned long timer_ticks_per_nsec_quotient __read_mostly;
int update_persistent_clock(struct timespec now)
{
struct rtc_device *rtc = rtc_class_open("rtc0");
- int err;
+ int err
= -1
;
if (rtc) {
err = rtc_set_mmss(rtc, now.tv_sec);
rtc_class_close(rtc);
}
- return
-1
;
+ return
err
;
}
unsigned long cmos_regs;
This page took
0.024574 seconds
and
5
git commands to generate.