[U-Boot] [PATCH 01/10] net: axi_emac: Fix parentheses around operand !

Joe Hershberger joe.hershberger at gmail.com
Tue Dec 15 21:07:23 CET 2015


On Fri, Dec 11, 2015 at 5:59 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> Fix these compilation warning by proper grouping:
> In function 'axi_dma_init': drivers/net/xilinx_axi_emac.c:391:7:
> warning: suggest parentheses around operand of '!' or change '&' to '&&'
> or '!' to '~' [-Wparentheses]
>     if (!(in_be32(&priv->dmatx->control) |
>         ^
> In function 'axiemac_send': drivers/net/xilinx_axi_emac.c:501:21:
> warning: suggest parentheses around operand of '!' or change '&' to '&&'
> or '!' to '~' [-Wparentheses]
>   while (timeout && (!in_be32(&priv->dmatx->status) &
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list