diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-17 15:12:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:44 -0500 |
commit | ac4cced6e850496b66c0825b7f74d51ef02c6371 (patch) | |
tree | 8e41fe2facb83e97af64a0fd01584a3c3b974e22 /drivers/net | |
parent | 4694961cc2f868d6061be3b2c3d1fcf39584ff17 (diff) |
libertas: reduce explicit references to priv->cur_cmd->cmdbuf
We have a local variable 'resp' which we use for this. So use it,
instead of typing the whole thing.
In preparation for actually using priv->upld_buf for the responses
instead...
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/libertas/cmdresp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c index 8f9eda4d1be1..d305e982c502 100644 --- a/drivers/net/wireless/libertas/cmdresp.c +++ b/drivers/net/wireless/libertas/cmdresp.c | |||
@@ -639,10 +639,10 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
639 | goto done; | 639 | goto done; |
640 | } | 640 | } |
641 | 641 | ||
642 | curcmd = le16_to_cpu(priv->cur_cmd->cmdbuf->command); | ||
643 | |||
644 | resp = priv->cur_cmd->cmdbuf; | 642 | resp = priv->cur_cmd->cmdbuf; |
645 | 643 | ||
644 | curcmd = le16_to_cpu(resp->command); | ||
645 | |||
646 | respcmd = le16_to_cpu(resp->command); | 646 | respcmd = le16_to_cpu(resp->command); |
647 | result = le16_to_cpu(resp->result); | 647 | result = le16_to_cpu(resp->result); |
648 | 648 | ||
@@ -650,9 +650,9 @@ int lbs_process_rx_command(struct lbs_private *priv) | |||
650 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies); | 650 | respcmd, le16_to_cpu(resp->seqnum), priv->upld_len, jiffies); |
651 | lbs_deb_hex(LBS_DEB_HOST, "CMD_RESP", (void *) resp, priv->upld_len); | 651 | lbs_deb_hex(LBS_DEB_HOST, "CMD_RESP", (void *) resp, priv->upld_len); |
652 | 652 | ||
653 | if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { | 653 | if (resp->seqnum != resp->seqnum) { |
654 | lbs_pr_info("Received CMD_RESP with invalid sequence %d (expected %d)\n", | 654 | lbs_pr_info("Received CMD_RESP with invalid sequence %d (expected %d)\n", |
655 | le16_to_cpu(resp->seqnum), le16_to_cpu(priv->cur_cmd->cmdbuf->seqnum)); | 655 | le16_to_cpu(resp->seqnum), le16_to_cpu(resp->seqnum)); |
656 | spin_unlock_irqrestore(&priv->driver_lock, flags); | 656 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
657 | ret = -1; | 657 | ret = -1; |
658 | goto done; | 658 | goto done; |