]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: cast away reboot_into_firmware() return type
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 6 Oct 2023 15:19:21 +0000 (16:19 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 6 Oct 2023 15:20:59 +0000 (16:20 +0100)
As mentioned by Lennart, in a commit where I was adding similar piece of
code:

  maybe cast this call to void, to tell static analyzers that we are
  ignoring the return value on purpose, not by accident

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/boot/efi/boot.c

index 7b13cd21db4ae2f625445c1964b8ae2f77563bdd..e3f3a13ed73b52454a14583098a3c1cd3a020861 100644 (file)
@@ -825,7 +825,7 @@ static bool menu_run(
                 if (firmware_setup) {
                         firmware_setup = false;
                         if (IN_SET(key, KEYPRESS(0, 0, '\r'), KEYPRESS(0, 0, '\n')))
-                                reboot_into_firmware();
+                                (void) reboot_into_firmware();
                         continue;
                 }