Commit ecfe9b48 authored by David Woodhouse's avatar David Woodhouse Committed by David S. Miller
Browse files

libertas: don't re-initialise cmdnode when taking it off the free queue



We initialise it when we add it to the queue. No need to do it again.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 183aeac1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1761,9 +1761,6 @@ static struct cmd_ctrl_node *lbs_get_cmd_ctrl_node(struct lbs_private *priv)

	spin_unlock_irqrestore(&priv->driver_lock, flags);

	if (tempnode)
		cleanup_cmdnode(tempnode);

	lbs_deb_leave(LBS_DEB_HOST);
	return tempnode;
}