Skip to content
Commit 13b6d2e6 authored by Nickolai Zeldovich's avatar Nickolai Zeldovich Committed by David S. Miller
Browse files

3c574_cs: fix operator precedence between << and &



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: default avatarNickolai Zeldovich <nickolai@csail.mit.edu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent be05e45a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment