Re: [PATCH] 3c574_cs: fix operator precedence between << and &

From: David Miller
Date: Thu Jan 17 2013 - 15:04:52 EST


From: Nickolai Zeldovich <nickolai@xxxxxxxxxxxxx>
Date: Thu, 17 Jan 2013 12:18:29 -0500

> The code to print the FIFO size in tc574_config computes it as:
>
> 8 << config & Ram_size
>
> which evaluates the '<<' first, but the actual intent is to evaluate the
> '&' first. Add parentheses to enforce desired evaluation order.
>
> Signed-off-by: Nickolai Zeldovich <nickolai@xxxxxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/