[PATCH 106/48] libertas: don't re-initialise cmdnode when taking it off the free queue

David Woodhouse dwmw2 at infradead.org
Sun Dec 16 17:59:13 EST 2007


Date: Sat, 15 Dec 2007 01:57:12 -0500

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

Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/net/wireless/libertas/cmd.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index 9c73902..fd321dd 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;
 }
-- 
1.5.3.4




More information about the libertas-dev mailing list