From: Mario Limonciello Date: Tue, 26 Oct 2021 17:14:43 +0000 (-0500) Subject: platform/x86: amd-pmc: Drop check for valid alarm time X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9587f39277ef799ab3be7bb04b191bdf1a3e697a;p=linux.git platform/x86: amd-pmc: Drop check for valid alarm time This is already checked when calling rtc_read_alarm. Suggested-by: Alexandre Belloni Signed-off-by: Mario Limonciello Link: https://lore.kernel.org/r/20211026171443.289-3-mario.limonciello@amd.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c index 81f3b9d79f432..b7e50ed050a80 100644 --- a/drivers/platform/x86/amd-pmc.c +++ b/drivers/platform/x86/amd-pmc.c @@ -435,9 +435,6 @@ static int amd_pmc_verify_czn_rtc(struct amd_pmc_dev *pdev, u32 *arg) dev_dbg(pdev->dev, "alarm not enabled\n"); return 0; } - rc = rtc_valid_tm(&alarm.time); - if (rc) - return rc; rc = rtc_read_time(rtc_device, &tm); if (rc) return rc;