Commit ade7ccba authored by Jonathan Marek's avatar Jonathan Marek Committed by Ard Biesheuvel
Browse files

efi/libstub: remove unnecessary cmd_line_len from efi_convert_cmdline()



efi_convert_cmdline() always sets cmdline_size to at least 1 on success,
so the "cmdline_size > 0" does nothing and can be removed (the intent
was to avoid parsing an empty string, but there is nothing wrong with
parsing an empty string, it is only making boot negligibly slower).

Then the cmd_line_len argument to efi_convert_cmdline can be removed
because there is nothing left using it.

Signed-off-by: default avatarJonathan Marek <jonathan@marek.ca>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent aacfa0ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment