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>
This commit is contained in:
Mario Limonciello 2021-10-26 12:14:43 -05:00 committed by Hans de Goede
parent 16a035a314
commit 9587f39277

View file

@ -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;