Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd08bd62 authored by Bhanu Prakash Gollapudi's avatar Bhanu Prakash Gollapudi Committed by James Bottomley
Browse files

[SCSI] bnx2fc: Do not arm CQ when there are no CQEs

parent bd4d5de8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1070,8 +1070,10 @@ int bnx2fc_process_new_cqes(struct bnx2fc_rport *tgt)
				1 - tgt->cq_curr_toggle_bit;
		}
	}
	if (num_free_sqes) {
		bnx2fc_arm_cq(tgt);
		atomic_add(num_free_sqes, &tgt->free_sqes);
	}
	spin_unlock_bh(&tgt->cq_lock);
	return 0;
}