efi: libstub: fix type confusion for load_options_size
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Sep 2022 14:14:18 +0000 (16:14 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 20 Sep 2022 12:12:45 +0000 (14:12 +0200)
commita241d94bb532dcfb7ef3f723e6a0a0e7cf8f10ea
treee7cf74429836f3112e738be2d6ea4bde803492be
parentc37b830fef1396f9f2ad79a65700e152ec362543
efi: libstub: fix type confusion for load_options_size

Even though it is unlikely to ever make a difference, let's use u32
consistently for the size of the load_options provided by the firmware
(aka the command line)

While at it, do some general cleanup too: use efi_char16_t, avoid using
options_chars in places where it really means options_size, etc.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/file.c