aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-12-11 13:49:39 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:06:45 -0500
commitddac452680a5164bb47d61ea54f596ddaf3aea7d (patch)
tree8aae999ecedd85ca14dd5dfeeb832d46cc7c1b76 /drivers/net/wireless/libertas/main.c
parentc9cd6f9d630c4422d5f7eb8018b28846e25dba20 (diff)
libertas: rename and re-type bufvirtualaddr to cmdbuf
Make it a struct cmd_header, since that's what it is, and clean up the places that it's used. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 212cce342272..a081b91fb9ba 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -890,23 +890,21 @@ done:
890static void command_timer_fn(unsigned long data) 890static void command_timer_fn(unsigned long data)
891{ 891{
892 struct lbs_private *priv = (struct lbs_private *)data; 892 struct lbs_private *priv = (struct lbs_private *)data;
893 struct cmd_ctrl_node *ptempnode; 893 struct cmd_ctrl_node *node;
894 struct cmd_ds_command *cmd;
895 unsigned long flags; 894 unsigned long flags;
896 895
897 ptempnode = priv->cur_cmd; 896 node = priv->cur_cmd;
898 if (ptempnode == NULL) { 897 if (node == NULL) {
899 lbs_deb_fw("ptempnode empty\n"); 898 lbs_deb_fw("ptempnode empty\n");
900 return; 899 return;
901 } 900 }
902 901
903 cmd = (struct cmd_ds_command *)ptempnode->bufvirtualaddr; 902 if (!node->cmdbuf) {
904 if (!cmd) {
905 lbs_deb_fw("cmd is NULL\n"); 903 lbs_deb_fw("cmd is NULL\n");
906 return; 904 return;
907 } 905 }
908 906
909 lbs_deb_fw("command_timer_fn fired, cmd %x\n", cmd->command); 907 lbs_deb_fw("command_timer_fn fired, cmd %x\n", node->cmdbuf->command);
910 908
911 if (!priv->fw_ready) 909 if (!priv->fw_ready)
912 return; 910 return;
@@ -916,7 +914,7 @@ static void command_timer_fn(unsigned long data)
916 spin_unlock_irqrestore(&priv->driver_lock, flags); 914 spin_unlock_irqrestore(&priv->driver_lock, flags);
917 915
918 lbs_deb_fw("re-sending same command because of timeout\n"); 916 lbs_deb_fw("re-sending same command because of timeout\n");
919 lbs_queue_cmd(priv, ptempnode, 0); 917 lbs_queue_cmd(priv, node, 0);
920 918
921 wake_up_interruptible(&priv->waitq); 919 wake_up_interruptible(&priv->waitq);
922 920