git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be05e45
)
3c574_cs: fix operator precedence between << and &
author
Nickolai Zeldovich
<nickolai@csail.mit.edu>
Thu, 17 Jan 2013 07:18:29 +0000
(07:18 +0000)
committer
David S. Miller
<davem@davemloft.net>
Thu, 17 Jan 2013 20:04:30 +0000
(15:04 -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@csail.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found