mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
rtc: tegra: stop validating rtc_time in .set_time
The RTC core is always validating the rtc_time struct before calling .set_time. It is not necessary to do it again in .set_time. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
9fb7aa7501
commit
c4f2eafe52
@ -144,10 +144,6 @@ static int tegra_rtc_set_time(struct device *dev, struct rtc_time *tm)
|
||||
int ret;
|
||||
|
||||
/* convert tm to seconds. */
|
||||
ret = rtc_valid_tm(tm);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
rtc_tm_to_time(tm, &sec);
|
||||
|
||||
dev_vdbg(dev, "time set to %lu. %d/%d/%d %d:%02u:%02u\n",
|
||||
|
Loading…
Reference in New Issue
Block a user