/* megasas_return_cmd - Return a cmd to free command pool @instance: Adapter soft state @cmd: Command packet to be returned to free command pool  */
static void megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
/* megasas_return_cmd - Return a cmd to free command pool @instance: Adapter soft state @cmd: Command packet to be returned to free command pool  */
static void megasas_return_cmd(struct megasas_instance *instance, struct megasas_cmd *cmd)
{
	unsigned long flags;
	spin_lock_irqsave(&instance->cmd_pool_lock, flags);
	cmd->scmd = NULL;
	list_add_tail(&cmd->list, &instance->cmd_pool);
	spin_unlock_irqrestore(&instance->cmd_pool_lock, flags);
}