rtc: class: Remove duplicate check for alarm

In __devm_rtc_register_device(), the callee rtc_initialize_alarm()
will check the alarm, there is no need to check in advance,
so remove it.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20260122090031.3871746-1-ruanjinjie@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Jinjie Ruan and committed by
Alexandre Belloni
76e8919a d1f64cdf

+1 -1
+1 -1
drivers/rtc/class.c
··· 410 410 411 411 /* Check to see if there is an ALARM already set in hw */ 412 412 err = __rtc_read_alarm(rtc, &alrm); 413 - if (!err && !rtc_valid_tm(&alrm.time)) 413 + if (!err) 414 414 rtc_initialize_alarm(rtc, &alrm); 415 415 416 416 rtc_dev_prepare(rtc);