]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
m68k: fix ambiguous bit testing
authorMike Frysinger <vapier@gentoo.org>
Sat, 15 Oct 2011 10:10:42 +0000 (10:10 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 5 Dec 2011 20:55:25 +0000 (21:55 +0100)
Building for some m68k boards results in the warning:

cpu_init.c: In function 'cpu_init_f':
cpu_init.c:287: warning: suggest parentheses around
operand of '!' or change '&' to '&&' or '!' to '~'

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/m68k/cpu/mcf52x2/cpu_init.c

index 170bbfc356c61fbd2c512cacd6641b043faf391f..a98a9262ebfb637466b055eafd832efdeb600338 100644 (file)
@@ -284,7 +284,7 @@ void cpu_init_f(void)
        mbar_writeLong(MCF_FMPLL_SYNCR,
                        MCF_FMPLL_SYNCR_MFD(0) | MCF_FMPLL_SYNCR_RFD(0));
 #endif
-       while (!mbar_readByte(MCF_FMPLL_SYNSR) & MCF_FMPLL_SYNSR_LOCK) ;
+       while (!(mbar_readByte(MCF_FMPLL_SYNSR) & MCF_FMPLL_SYNSR_LOCK)) ;
 }
 
 /*