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

Commit 02d28997 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: rx4581: remove useless message



It is not necessary to print a message when the time is invalid as
userspace will already get an error (and an optional dev_dbg message).

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent b1b8394e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -172,11 +172,7 @@ static int rx4581_get_datetime(struct device *dev, struct rtc_time *tm)
		tm->tm_sec, tm->tm_min, tm->tm_hour,
		tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday);

	err = rtc_valid_tm(tm);
	if (err < 0)
		dev_err(dev, "retrieved date/time is not valid.\n");

	return err;
	return 0;
}

static int rx4581_set_datetime(struct device *dev, struct rtc_time *tm)