From 7a1bc9a9165a60c5d5c97903f512738c816cc121 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Sat, 22 Oct 2005 15:57:55 +1000 Subject: [PATCH] --- yaml --- r: 11629 b: refs/heads/master c: b6ba92819dc1304a4e5a0bf06b297c657b58168a h: refs/heads/master i: 11627: e79179249e578eeb4b41b607c942fbebb82a5ee3 v: v3 --- [refs] | 2 +- trunk/include/asm-powerpc/rtc.h | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index fe307d5ef81f..f76cacc6fe2b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ef1a12817aebc313049d226f96eee86e4bcc94a3 +refs/heads/master: b6ba92819dc1304a4e5a0bf06b297c657b58168a diff --git a/trunk/include/asm-powerpc/rtc.h b/trunk/include/asm-powerpc/rtc.h index d38f2a077db2..f5802926b6c0 100644 --- a/trunk/include/asm-powerpc/rtc.h +++ b/trunk/include/asm-powerpc/rtc.h @@ -52,10 +52,8 @@ static inline unsigned int get_rtc_time(struct rtc_time *time) /* Set the current date and time in the real time clock. */ static inline int set_rtc_time(struct rtc_time *time) { - if (ppc_md.get_rtc_time) { - ppc_md.set_rtc_time(time); - return 0; - } + if (ppc_md.set_rtc_time) + return ppc_md.set_rtc_time(time); return -EINVAL; }