patch-2.4.18 linux/drivers/message/i2o/i2o_config.c

Next file: linux/drivers/message/i2o/i2o_core.c
Previous file: linux/drivers/message/i2o/i2o_block.c
Back to the patch index
Back to the overall index

diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/drivers/message/i2o/i2o_config.c linux/drivers/message/i2o/i2o_config.c
@@ -45,7 +45,7 @@
 static spinlock_t i2o_config_lock = SPIN_LOCK_UNLOCKED;
 struct wait_queue *i2o_wait_queue;
 
-#define MODINC(x,y) (x = x++ % y)
+#define MODINC(x,y) ((x) = ((x) + 1) % (y))
 
 struct i2o_cfg_info
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)