diff options
author | Jan Janssen <medhefgo@web.de> | 2022-09-29 09:09:52 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-29 10:30:37 +0200 |
commit | 957dfcc96d5f7febc58c3d1d6f969bda854fb98b (patch) | |
tree | ec0faaea2ff682ebb4573ef30433e9eb3c2cf226 /src/boot/efi/splash.c | |
parent | resolved: paranoia: restrict socket mode as much as we can (diff) | |
download | systemd-957dfcc96d5f7febc58c3d1d6f969bda854fb98b.tar.xz systemd-957dfcc96d5f7febc58c3d1d6f969bda854fb98b.zip |
stub: Remove unused function parameter
Diffstat (limited to 'src/boot/efi/splash.c')
-rw-r--r-- | src/boot/efi/splash.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/boot/efi/splash.c b/src/boot/efi/splash.c index 1f805cf983..5bc1084e62 100644 --- a/src/boot/efi/splash.c +++ b/src/boot/efi/splash.c @@ -254,8 +254,8 @@ static EFI_STATUS bmp_to_blt( return EFI_SUCCESS; } -EFI_STATUS graphics_splash(const uint8_t *content, UINTN len, const EFI_GRAPHICS_OUTPUT_BLT_PIXEL *background) { - EFI_GRAPHICS_OUTPUT_BLT_PIXEL pixel = {}; +EFI_STATUS graphics_splash(const uint8_t *content, UINTN len) { + EFI_GRAPHICS_OUTPUT_BLT_PIXEL background = {}; EFI_GRAPHICS_OUTPUT_PROTOCOL *GraphicsOutput = NULL; struct bmp_dib *dib; struct bmp_map *map; @@ -270,13 +270,10 @@ EFI_STATUS graphics_splash(const uint8_t *content, UINTN len, const EFI_GRAPHICS assert(content); - if (!background) { - if (strcaseeq16(u"Apple", ST->FirmwareVendor)) { - pixel.Red = 0xc0; - pixel.Green = 0xc0; - pixel.Blue = 0xc0; - } - background = &pixel; + if (strcaseeq16(ST->FirmwareVendor, u"Apple")) { + background.Red = 0xc0; + background.Green = 0xc0; + background.Blue = 0xc0; } err = BS->LocateProtocol(&GraphicsOutputProtocol, NULL, (void **) &GraphicsOutput); @@ -293,7 +290,7 @@ EFI_STATUS graphics_splash(const uint8_t *content, UINTN len, const EFI_GRAPHICS y_pos = (GraphicsOutput->Mode->Info->VerticalResolution - dib->y) / 2; err = GraphicsOutput->Blt( - GraphicsOutput, (EFI_GRAPHICS_OUTPUT_BLT_PIXEL *)background, + GraphicsOutput, &background, EfiBltVideoFill, 0, 0, 0, 0, GraphicsOutput->Mode->Info->HorizontalResolution, GraphicsOutput->Mode->Info->VerticalResolution, 0); |