Lorenz Brun | 5d40c67 | 2021-09-28 15:06:37 +0200 | [diff] [blame] | 1 | From 8f0fa4ec981e6c22013949f551ef1b2d7b7dc0e3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Lorenz Brun <lorenz@monogon.tech> |
| 3 | Date: Wed, 29 Sep 2021 19:10:17 +0200 |
| 4 | Subject: [PATCH] Remove wrong assertion that a cmdline exists |
| 5 | |
| 6 | All uses of cmdline are gated behind an if statement, it is perfectly |
| 7 | acceptable for cmdline to not be passed. |
| 8 | --- |
| 9 | src/boot/efi/linux.c | 1 - |
| 10 | 1 file changed, 1 deletion(-) |
| 11 | |
| 12 | diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c |
| 13 | index 0d58f39ff6..ad82ade019 100644 |
| 14 | --- a/src/boot/efi/linux.c |
| 15 | +++ b/src/boot/efi/linux.c |
| 16 | @@ -40,7 +40,6 @@ EFI_STATUS linux_exec(EFI_HANDLE image, |
| 17 | EFI_STATUS err; |
| 18 | |
| 19 | assert(image); |
| 20 | - assert(cmdline); |
| 21 | |
| 22 | image_params = (const struct boot_params *) linux_addr; |
| 23 | |
| 24 | -- |
| 25 | 2.25.1 |
| 26 | |