/* megasas_deplete_reply_queue - Processes all completed commands @instance: Adapter soft state @alt_status: Alternate status to be returned to SCSI mid-layer instead of the status returned by the FW  */
static int megasas_deplete_reply_queue(struct megasas_instance *instance, u8 alt_status)
/* megasas_deplete_reply_queue - Processes all completed commands @instance: Adapter soft state @alt_status: Alternate status to be returned to SCSI mid-layer instead of the status returned by the FW  */
static int megasas_deplete_reply_queue(struct megasas_instance *instance, u8 alt_status)
{
	if(instance->instancet->clear_intr(instance->reg_set))
		return IRQ_NONE;
	if (instance->hw_crit_error)
		goto out_done;
	tasklet_schedule(&instance->isr_tasklet);
out_done:
	return IRQ_HANDLED;
}