On 11/01/2017 at 11:07:16 +0100, Amelie DELAUNAY wrote :Even if rtc_valid_tm is called just after rtc->ops->read_time() in __rtc_read_time ?
This will never happen, tm is already checked multiple times (up toYou're right. I'll remove all rtc_valid_tm calls.
three) in the core before this function can be called.
You can keep the one in read_time