diff options
author | David S. Miller <davem@davemloft.net> | 2010-11-18 11:49:25 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-18 11:49:25 -0800 |
commit | 30dfe2c05037fbc021121c037872c09956938c2f (patch) | |
tree | 2db9f69aaddf6109946810a53d837a25ae595757 /drivers/net | |
parent | 57e1ab6eaddc9f2c358cd4afb497cda6e3c6821a (diff) | |
download | talos-obmc-linux-30dfe2c05037fbc021121c037872c09956938c2f.tar.gz talos-obmc-linux-30dfe2c05037fbc021121c037872c09956938c2f.zip |
atm: fore200e: Fix build warning.
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>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions