summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-21 02:10:41 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-02 12:12:23 +0300
commitb1b8394edc3b9b4093f3a2a6b98b8d76ac46dc7e (patch)
treee6dce1a072b6e526ddec4e6bf499340681812885 /drivers
parentfbfd36fdd26cab41844f0b869de0cf120017c15c (diff)
downloadlinux-b1b8394edc3b9b4093f3a2a6b98b8d76ac46dc7e.tar.xz
rtc: pm8xxx: 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-pm8xxx.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c
index fac835530671..8e0128796824 100644
--- a/drivers/rtc/rtc-pm8xxx.c
+++ b/drivers/rtc/rtc-pm8xxx.c
@@ -190,12 +190,6 @@ static int pm8xxx_rtc_read_time(struct device *dev, struct rtc_time *tm)
rtc_time_to_tm(secs, tm);
- rc = rtc_valid_tm(tm);
- if (rc < 0) {
- 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);