Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6ba9281 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

powerpc: Make set_rtc_time() return error code from lower-level function



Previously it ignored the return value from ppc_md.set_rtc_time,
but in fact the functions that that can point to do return a
useful error code, so return it from set_rtc_time().

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent ef1a1281
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -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. */
/* Set the current date and time in the real time clock. */
static inline int set_rtc_time(struct rtc_time *time)
static inline int set_rtc_time(struct rtc_time *time)
{
{
	if (ppc_md.get_rtc_time) {
	if (ppc_md.set_rtc_time)
		ppc_md.set_rtc_time(time);
		return ppc_md.set_rtc_time(time);
		return 0;
	}
	return -EINVAL;
	return -EINVAL;
}
}