Skip to content

Commit

Permalink
libertas: don't re-initialise cmdnode when taking it off the free queue
Browse files Browse the repository at this point in the history
We initialise it when we add it to the queue. No need to do it again.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 183aeac commit ecfe9b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ecfe9b4

Please sign in to comment.