]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: missing parentheses in query_console_size
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 29 Jun 2021 08:09:14 +0000 (10:09 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 2 Jul 2021 07:37:01 +0000 (09:37 +0200)
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>
lib/efi_loader/efi_console.c

index 6040f3a99ab9784cccd1db682f336070a8f3feea..3b012e1a669ddc95a0f8e566c4384d4f243adfa4 100644 (file)
@@ -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);