• D
    atm: fore200e: Fix build warning. · 30dfe2c0
    David S. Miller 提交于
    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: NDavid S. Miller <davem@davemloft.net>
    30dfe2c0
fore200e.c 88.5 KB