BACKPORT: rtc: qpnp: 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: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Andrzej Perczak <linux@andrzejperczak.com>
Change-Id: If7f7835256c09c765667d857f2a8756da7b9ab23
Signed-off-by: azrim <mirzaspc@gmail.com>
This commit is contained in:
Alexandre Belloni 2021-11-16 11:11:02 +01:00 committed by azrim
parent 0051465172
commit 7ff2cb5809
No known key found for this signature in database
GPG Key ID: 497F8FB059B45D1C

View File

@ -267,12 +267,6 @@ qpnp_rtc_read_time(struct device *dev, struct rtc_time *tm)
rtc_time_to_tm(secs, tm);
rc = rtc_valid_tm(tm);
if (rc) {
dev_err(dev, "Invalid time read from RTC\n");
return rc;
}
dev_dbg(dev, "secs = %lu, h:m:s == %d:%d:%d, d/m/y = %d/%d/%d\n",
secs, tm->tm_hour, tm->tm_min, tm->tm_sec,
tm->tm_mday, tm->tm_mon, tm->tm_year);