From: Sasha Levin Date: Thu, 20 Dec 2012 19:11:33 +0000 (-0500) Subject: x86, efi: correct precedence of operators in setup_efi_pci X-Git-Tag: upstream/snapshot3+hdmi~5873^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=886d751a2ea99a160f2d0a472231566d9cb0cf58;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git x86, efi: correct precedence of operators in setup_efi_pci With the current code, the condition in the if() doesn't make much sense due to precedence of operators. Signed-off-by: Sasha Levin Link: http://lkml.kernel.org/r/1356030701-16284-25-git-send-email-sasha.levin@oracle.com Cc: Matt Fleming Cc: Matthew Garrett Cc: Bjorn Helgaas Cc: Seth Forshee Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index b1942e2..18e329c 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -302,7 +302,7 @@ static efi_status_t setup_efi_pci(struct boot_params *params) if (status != EFI_SUCCESS) continue; - if (!attributes & EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM) + if (!(attributes & EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM)) continue; if (!pci->romimage || !pci->romsize)