summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-15 07:57:12 +0100
committerDavid S. Miller <davem@davemloft.net>2008-01-29 00:07:32 +0100
commitecfe9b487c0d3f6b7ad58006888a56f01ae52b58 (patch)
tree48d831aed2037de325c7f167ca62c85570ed2fef
parentlibertas: introduce and use lbs_complete_command() for command completion (diff)
downloadlinux-ecfe9b487c0d3f6b7ad58006888a56f01ae52b58.tar.xz
linux-ecfe9b487c0d3f6b7ad58006888a56f01ae52b58.zip
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: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/libertas/cmd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 9c73902ca86f..fd321ddf596e 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -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;
}