qlxgb(4): Use defined evaluation order

Reported by:	Coverity
CID:		1193717
This commit is contained in:
Conrad Meyer 2020-01-29 04:41:26 +00:00
parent f824ea0c26
commit bf66c12e30

View File

@ -226,7 +226,7 @@ qla_watchdog(void *arg)
taskqueue_enqueue(ha->tx_tq, &ha->tx_task);
}
}
ha->watchdog_ticks = ha->watchdog_ticks++ % 1000;
ha->watchdog_ticks = (ha->watchdog_ticks + 1) % 1000;
callout_reset(&ha->tx_callout, QLA_WATCHDOG_CALLOUT_TICKS,
qla_watchdog, ha);
}