]> git.baikalelectronics.ru Git - kernel.git/commit
efi: vars: Drop __efivar_entry_iter() helper which is no longer used
authorArd Biesheuvel <ardb@kernel.org>
Tue, 21 Jun 2022 13:54:53 +0000 (15:54 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 18:40:19 +0000 (20:40 +0200)
commit0759e0e5a6bbd8a719b434d358a8c4ffcc0754fd
tree4c29f8ce919b5e1ba909b8ddd5227ae1d46d4572
parent42f5b1e993b9cfe59b5017ad614042a266b60faa
efi: vars: Drop __efivar_entry_iter() helper which is no longer used

__efivar_entry_iter() uses a list iterator in a dubious way, i.e., it
assumes that the iteration variable always points to an object of the
appropriate type, even if the list traversal exhausts the list
completely, in which case it will point somewhere in the vicinity of the
list's anchor instead.

Fortunately, we no longer use this function so we can just get rid of it
entirely.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/vars.c
include/linux/efi.h