From: David S. Miller Date: Thu, 18 Nov 2010 19:49:25 +0000 (-0800) Subject: atm: fore200e: Fix build warning. X-Git-Tag: v2.6.38-rc1~476^2~510 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30dfe2c05037fbc021121c037872c09956938c2f;p=pandora-kernel.git 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 --- Reading git-diff-tree failed