]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/atm/fore200e.c
atm: fore200e: Fix build warning.
[net-next-2.6.git] / drivers / atm / fore200e.c
index c8fc69c85a062f81029495e827ae615547f964e9..c09761959354a5ad3508c8f2ecccfa0b21da3ded 100644 (file)
@@ -92,7 +92,7 @@
 
 #define FORE200E_INDEX(virt_addr, type, index)     (&((type *)(virt_addr))[ index ])
 
-#define FORE200E_NEXT_ENTRY(index, modulo)         (index = ++(index) % (modulo))
+#define FORE200E_NEXT_ENTRY(index, modulo)         (index = ((index) + 1) % (modulo))
 
 #if 1
 #define ASSERT(expr)     if (!(expr)) { \