mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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:
parent
16a035a314
commit
9587f39277
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue