summaryrefslogtreecommitdiff
path: root/src/boot/efi/graphics.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-09 14:23:02 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-09 14:59:51 +0200
commit1f6b411372076426c0faf0bb350437fb4d82931f (patch)
tree32a52b3e2bb04731cc857b738e989531a4144516 /src/boot/efi/graphics.c
parent94c156cd452424ea59931920df2454d9da7cb774 (diff)
tree-wide: update empty-if coccinelle script to cover empty-while and more
Let's also clean up single-line while and for blocks.
Diffstat (limited to 'src/boot/efi/graphics.c')
-rw-r--r--src/boot/efi/graphics.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/boot/efi/graphics.c b/src/boot/efi/graphics.c
index 2e9c11f5a0..f732428216 100644
--- a/src/boot/efi/graphics.c
+++ b/src/boot/efi/graphics.c
@@ -67,10 +67,9 @@ EFI_STATUS graphics_mode(BOOLEAN on) {
EFI_STATUS err;
err = LibLocateProtocol(&ConsoleControlProtocolGuid, (VOID **)&ConsoleControl);
- if (EFI_ERROR(err)) {
+ if (EFI_ERROR(err))
/* console control protocol is nonstandard and might not exist. */
return err == EFI_NOT_FOUND ? EFI_SUCCESS : err;
- }
/* check current mode */
err = uefi_call_wrapper(ConsoleControl->GetMode, 4, ConsoleControl, &current, &uga_exists, &stdin_locked);