]> git.ipfire.org Git - thirdparty/grub.git/commit
loader: Drop argv[] argument in grub_initrd_load()
authorNikita Ermakov <arei@altlinux.org>
Thu, 18 Aug 2022 14:51:28 +0000 (16:51 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 19 Aug 2022 21:55:49 +0000 (23:55 +0200)
commit5730424cb91b8215c8aa10ae35681dc7273522d9
tree44aded0dc4dd86fcf4fcf4e27f570fc0ea013f14
parent8df6e1c067e077a18e03345fef2029eee8cee978
loader: Drop argv[] argument in grub_initrd_load()

In the case of an error grub_initrd_load() uses argv[] to print the
filename that caused the error. It is also possible to obtain the
filename from the file handles and there is no need to duplicate that
information in argv[], so let's drop it.

Signed-off-by: Nikita Ermakov <arei@altlinux.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/arm/linux.c
grub-core/loader/arm64/linux.c
grub-core/loader/i386/linux.c
grub-core/loader/i386/pc/linux.c
grub-core/loader/i386/xen.c
grub-core/loader/ia64/efi/linux.c
grub-core/loader/linux.c
grub-core/loader/mips/linux.c
grub-core/loader/powerpc/ieee1275/linux.c
grub-core/loader/sparc64/ieee1275/linux.c
include/grub/linux.h