summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-12-20 20:11:33 +0100
committerH. Peter Anvin <hpa@linux.intel.com>2012-12-20 20:47:14 +0100
commit886d751a2ea99a160f2d0a472231566d9cb0cf58 (patch)
tree514cd346a2611d285a35de70b108ad11baadc1ba /arch
parentMerge tag 'iommu-updates-v3.8' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff)
downloadlinux-886d751a2ea99a160f2d0a472231566d9cb0cf58.tar.xz
linux-886d751a2ea99a160f2d0a472231566d9cb0cf58.zip
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 <sasha.levin@oracle.com> Link: http://lkml.kernel.org/r/1356030701-16284-25-git-send-email-sasha.levin@oracle.com Cc: Matt Fleming <matt.fleming@intel.com> Cc: Matthew Garrett <mjg@redhat.com> Cc: Bjorn Helgaas <bhelgaas@google.com> Cc: Seth Forshee <seth.forshee@canonical.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/boot/compressed/eboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c
index b1942e222768..18e329ca108e 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)