Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/x86: amd-pmc: Drop check for valid alarm time

This is already checked when calling rtc_read_alarm.

Suggested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20211026171443.289-3-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Mario Limonciello and committed by
Hans de Goede
9587f392 16a035a3

-3
-3
drivers/platform/x86/amd-pmc.c
··· 435 435 dev_dbg(pdev->dev, "alarm not enabled\n"); 436 436 return 0; 437 437 } 438 - rc = rtc_valid_tm(&alarm.time); 439 - if (rc) 440 - return rc; 441 438 rc = rtc_read_time(rtc_device, &tm); 442 439 if (rc) 443 440 return rc;