/* This function inserts command node to cmdfreeq after cleans it. Requires priv->driver_lock held.  */
static void __lbtf_cleanup_and_insert_cmd(struct lbtf_private *priv, struct cmd_ctrl_node *cmdnode)
/* This function inserts command node to cmdfreeq after cleans it. Requires priv->driver_lock held.  */
static void __lbtf_cleanup_and_insert_cmd(struct lbtf_private *priv, struct cmd_ctrl_node *cmdnode)
{
	if (!cmdnode)
		return;
	cmdnode->callback = NULL;
	cmdnode->callback_arg = 0;
	memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE);
	list_add_tail(&cmdnode->list, &priv->cmdfreeq);
}