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

Commit 90158d84 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix return value in update_persistent_clock().



Noticed by Stephen Rothwell.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 503acc8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;