mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
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:
committed by
H. Peter Anvin
parent
787314c35f
commit
886d751a2e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user