diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-20 17:42:27 -0500 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-02 04:12:23 -0500 |
commit | fbfd36fdd26cab41844f0b869de0cf120017c15c (patch) | |
tree | 914bdb36a8562138599777c23b59b405e3d8997e | |
parent | c4f2eafe52aab77f9481595b180d8ae01903a07c (diff) |
rtc: abx80x: 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>
-rw-r--r-- | drivers/rtc/rtc-abx80x.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-abx80x.c b/drivers/rtc/rtc-abx80x.c index b033bc556f5d..2cefa67a1132 100644 --- a/drivers/rtc/rtc-abx80x.c +++ b/drivers/rtc/rtc-abx80x.c | |||
@@ -172,11 +172,7 @@ static int abx80x_rtc_read_time(struct device *dev, struct rtc_time *tm) | |||
172 | tm->tm_mon = bcd2bin(buf[ABX8XX_REG_MO] & 0x1F) - 1; | 172 | tm->tm_mon = bcd2bin(buf[ABX8XX_REG_MO] & 0x1F) - 1; |
173 | tm->tm_year = bcd2bin(buf[ABX8XX_REG_YR]) + 100; | 173 | tm->tm_year = bcd2bin(buf[ABX8XX_REG_YR]) + 100; |
174 | 174 | ||
175 | err = rtc_valid_tm(tm); | 175 | return 0; |
176 | if (err < 0) | ||
177 | dev_err(&client->dev, "retrieved date/time is not valid.\n"); | ||
178 | |||
179 | return err; | ||
180 | } | 176 | } |
181 | 177 | ||
182 | static int abx80x_rtc_set_time(struct device *dev, struct rtc_time *tm) | 178 | static int abx80x_rtc_set_time(struct device *dev, struct rtc_time *tm) |