scsi: qla2xxx: Remove potential macro parameter side-effect in ql_dump_regs()
authorJoe Carnuccio <joe.carnuccio@cavium.com>
Wed, 23 Aug 2017 22:05:15 +0000 (15:05 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:29:28 +0000 (22:29 -0400)
Signed-off-by: Joe Carnuccio <joe.carnuccio@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_dbg.c

index 065449e0f347f1217573add2f57a91d0e666a350..3e9dc54b89a32f1704e4d68569d667ee673d34e4 100644 (file)
@@ -2736,9 +2736,9 @@ ql_dump_regs(uint32_t level, scsi_qla_host_t *vha, int32_t id)
                mbx_reg = MAILBOX_REG(ha, reg, 0);
 
        ql_dbg(level, vha, id, "Mailbox registers:\n");
-       for (i = 0; i < 6; i++)
+       for (i = 0; i < 6; i++, mbx_reg++)
                ql_dbg(level, vha, id,
-                   "mbox[%d] 0x%04x\n", i, RD_REG_WORD(mbx_reg++));
+                   "mbox[%d] 0x%04x\n", i, RD_REG_WORD(mbx_reg));
 }