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>
This commit is contained in:
Sasha Levin 2012-12-20 14:11:33 -05:00 коммит произвёл H. Peter Anvin
Родитель 787314c35f
Коммит 886d751a2e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -302,7 +302,7 @@ static efi_status_t setup_efi_pci(struct boot_params *params)
if (status != EFI_SUCCESS) if (status != EFI_SUCCESS)
continue; continue;
if (!attributes & EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM) if (!(attributes & EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM))
continue; continue;
if (!pci->romimage || !pci->romsize) if (!pci->romimage || !pci->romsize)