static struct mbox_chan *get_irq_chan_comb(struct mhuv2 *mhu, u32 __iomem *reg)
 {
        struct mbox_chan *chans = mhu->mbox.chans;
-       int channel = 0, i, offset = 0, windows, protocol, ch_wn;
+       int channel = 0, i, j, offset = 0, windows, protocol, ch_wn;
        u32 stat;
 
        for (i = 0; i < MHUV2_CMB_INT_ST_REG_CNT; i++) {
 
                ch_wn = i * MHUV2_STAT_BITS + __builtin_ctz(stat);
 
-               for (i = 0; i < mhu->length; i += 2) {
-                       protocol = mhu->protocols[i];
-                       windows = mhu->protocols[i + 1];
+               for (j = 0; j < mhu->length; j += 2) {
+                       protocol = mhu->protocols[j];
+                       windows = mhu->protocols[j + 1];
 
                        if (ch_wn >= offset + windows) {
                                if (protocol == DOORBELL)