platform/x86: amd-pmc: Drop check for valid alarm time
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 26 Oct 2021 17:14:43 +0000 (12:14 -0500)
committerHans de Goede <hdegoede@redhat.com>
Wed, 27 Oct 2021 14:07:28 +0000 (16:07 +0200)
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>
drivers/platform/x86/amd-pmc.c

index 81f3b9d79f432d5600a3d057706a93cae162cc62..b7e50ed050a802f4fa9b6007ee820acfd20b9a15 100644 (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;