rtc: efi: fixed typo in efi_procfs()
authorMaxim Korotkov <korotkov.maxim.s@gmail.com>
Fri, 6 Oct 2023 09:04:44 +0000 (12:04 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 15 Oct 2023 21:01:08 +0000 (23:01 +0200)
commitf5f4c982f7c8a8cffb2663078a40ecd7d82b534d
treec3f696c4341a07a0afd8693a873fa23409db2990
parent3c8bdc20a44fd0126e331e0623e7daf00d186135
rtc: efi: fixed typo in efi_procfs()

After the first check of the value of the "eft" variable
it does not change, it is obvious that a copy-paste
error was made here and the value of variable "alm"
should be checked here.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 501385f2a783 ("rtc: efi: add efi_procfs in efi_rtc_ops")
Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
Link: https://lore.kernel.org/r/20231006090444.306729-1-korotkov.maxim.s@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-efi.c