summaryrefslogtreecommitdiffstats
path: root/drivers/i2o/i2o_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2o/i2o_core.c')
-rw-r--r--drivers/i2o/i2o_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2o/i2o_core.c b/drivers/i2o/i2o_core.c
index d39e32529..87871fa15 100644
--- a/drivers/i2o/i2o_core.c
+++ b/drivers/i2o/i2o_core.c
@@ -183,7 +183,7 @@ static struct reply_info events[I2O_EVT_Q_LEN];
static int evt_in = 0;
static int evt_out = 0;
static int evt_q_len = 0;
-#define MODINC(x,y) (x = x++ % y)
+#define MODINC(x,y) ((x) = ((x) + 1) % (y))
/*
* I2O configuration spinlock. This isnt a big deal for contention