x86/rtc: Simplify PNP ids check
authorHans de Goede <hdegoede@redhat.com>
Wed, 14 Dec 2022 21:24:47 +0000 (22:24 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 6 Jan 2023 03:22:34 +0000 (04:22 +0100)
commitbd4edba2653aeef0119b7a945f07e58711343bf9
treeb3d76bb31942e9a80311dd8c93e0c5a2d92fe190
parent41c03ba9beea760bd2d2ac9250b09a2e192da2dc
x86/rtc: Simplify PNP ids check

compare_pnp_id() already iterates over the single linked pnp_ids list
starting with the id past to it.

So there is no need for add_rtc_cmos() to call compare_pnp_id()
for each id on the list.

No change in functionality intended.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Cc: linux-kernel@vger.kernel.org
arch/x86/kernel/rtc.c