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:
57e1ab6
)
atm: fore200e: Fix build warning.
author
David S. Miller
<davem@davemloft.net>
Thu, 18 Nov 2010 19:49:25 +0000
(11:49 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 18 Nov 2010 19:49:25 +0000
(11:49 -0800)
GCC (rightfully) complains that:
drivers/atm/fore200e.c:614:5: warning: operation on 'cmdq->head' may be undefined
This is due to the FORE200E_NEXT_ENTRY macro, which essentially
evaluates to:
i = ++i % m
Make it what's explicitly intended here which is:
i = (i + 1) % m
and the warning goes away.
Signed-off-by: David S. Miller <davem@davemloft.net>
No differences found