diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-29 10:09:14 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-07-02 09:37:01 +0200 |
commit | abd62e4d41112893d70ddcbe7faad887116ed323 (patch) | |
tree | 6684273c49146669249da5c2773cdbdd611f2f8f /lib | |
parent | 6e0184b86f689045a0acc268e1899ce7757c65d0 (diff) | |
download | u-boot-abd62e4d41112893d70ddcbe7faad887116ed323.zip u-boot-abd62e4d41112893d70ddcbe7faad887116ed323.tar.gz u-boot-abd62e4d41112893d70ddcbe7faad887116ed323.tar.bz2 |
efi_loader: missing parentheses in query_console_size
After if we should use parentheses to keep the code readable.
Fixes: a95f4c885991 ("efi_loader: NULL dereference in EFI console")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_console.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 6040f3a..3b012e1 100644 --- a/lib/efi_loader/efi_console.c +++ b/lib/efi_loader/efi_console.c @@ -342,7 +342,7 @@ static void query_console_size(void) int rows = 25, cols = 80; int ret = -ENODEV; - if IS_ENABLED(CONFIG_DM_VIDEO) + if (IS_ENABLED(CONFIG_DM_VIDEO)) ret = query_vidconsole(&rows, &cols); if (ret) ret = query_console_serial(&rows, &cols); |