From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [patch] x86, efi: precedence error in setup_efi_pci() Date: Fri, 07 Dec 2012 19:05:53 -0800 Message-ID: <50C2AE91.9060800@zytor.com> References: <20121207061649.GA18220@elgon.mountain> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121207061649.GA18220-mgFCXtclrQlZLf2FXnZxJA@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dan Carpenter Cc: Matt Fleming , Matthew Garrett , Thomas Gleixner , Ingo Molnar , x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-efi@vger.kernel.org On 12/06/2012 10:16 PM, Dan Carpenter wrote: > Negate has higher precedence than bitwise AND so the condition is always > false. > > Signed-off-by: Dan Carpenter > > 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) > What is the baseline for this patch? -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.