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 <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Cc: Matt Fleming <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Seth Forshee <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
This commit is contained in:
Sasha Levin
2012-12-20 11:47:14 -08:00
committed by H. Peter Anvin
parent 787314c35f
commit 886d751a2e
+1 -1
View File
@@ -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)