When driver is unloaded, all sessions are torn down, all commmands are
flushed, chip is reset to ensure there is no knowledge of target mode in
ISP. The irq_cmd_count field was used to make sure all commands are
processed on top of that.  The irq_cmd_count is now redundant and not
needed.
Signed-off-by: Quinn Tran <quinn.tran@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
         * Otherwise, some commands can stuck.
         */
 
-       tgt->irq_cmd_count++;
-
        switch (pkt->entry_type) {
        case CTIO_CRC2:
        case CTIO_TYPE7:
                }
 
                rc = qlt_chk_qfull_thresh_hold(vha, atio, true);
-               if (rc != 0) {
-                       tgt->irq_cmd_count--;
+               if (rc != 0)
                        return;
-               }
 
                rc = qlt_handle_cmd_for_atio(vha, atio);
                if (unlikely(rc != 0)) {
                break;
        }
 
-       tgt->irq_cmd_count--;
 }
 
 /*
         * Otherwise, some commands can stuck.
         */
 
-       tgt->irq_cmd_count++;
 
        switch (code) {
        case MBA_RESET:                 /* Reset */
                break;
        }
 
-       tgt->irq_cmd_count--;
 }
 
 static fc_port_t *qlt_get_port_database(struct scsi_qla_host *vha,
 
         * because req_pkt() can drop/reaquire HW lock inside. Protected by
         * HW lock.
         */
-       int irq_cmd_count;
        int atio_irq_cmd_count;
 
        int datasegs_per_cmd, datasegs_per_cont, sg_tablesize;