diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2022-06-21 16:54:53 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-06-24 21:40:19 +0300 |
commit | 5ac941367a6f85777ef34ec15d60e17ea8e446d4 (patch) | |
tree | 4c29f8ce919b5e1ba909b8ddd5227ae1d46d4572 /include | |
parent | 3a75f9f2f9ad19bb9a0f566373ae91d8f09db85e (diff) | |
download | linux-5ac941367a6f85777ef34ec15d60e17ea8e446d4.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/efi.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index 54ca2d6b6c78..93ce85a14a46 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -1083,9 +1083,6 @@ int efivar_entry_set_safe(efi_char16_t *name, efi_guid_t vendor, u32 attributes, int efivar_entry_iter_begin(void); void efivar_entry_iter_end(void); -int __efivar_entry_iter(int (*func)(struct efivar_entry *, void *), - struct list_head *head, void *data, - struct efivar_entry **prev); int efivar_entry_iter(int (*func)(struct efivar_entry *, void *), struct list_head *head, void *data); |