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 <[email protected]>
---
 drivers/rtc/rtc-tile.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/rtc/rtc-tile.c b/drivers/rtc/rtc-tile.c
index 0b60867d8390..ef1cdabf05b4 100644
--- a/drivers/rtc/rtc-tile.c
+++ b/drivers/rtc/rtc-tile.c
@@ -39,9 +39,6 @@ static int read_rtc_time(struct device *dev, struct rtc_time 
*tm)
        tm->tm_yday = 0;
        tm->tm_isdst = 0;
 
-       if (rtc_valid_tm(tm) < 0)
-               dev_warn(dev, "Read invalid date/time from RTC\n");
-
        return 0;
 }
 
-- 
2.16.1

Reply via email to