Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79227
b: refs/heads/master
c: c4ab412
h: refs/heads/master
i:
  79225: a266d5d
  79223: 7150102
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 513eeb9 commit 2562dd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b23b2061e5758d4827630ee900b4b290376d0059
refs/heads/master: c4ab41272b55a08741d2e68966aae700e2e6d597
16 changes: 4 additions & 12 deletions trunk/drivers/net/wireless/libertas/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,8 +1166,8 @@ void lbs_queue_cmd(struct lbs_private *priv,

lbs_deb_enter(LBS_DEB_HOST);

if (!cmdnode || !cmdnode->cmdbuf) {
lbs_deb_host("QUEUE_CMD: cmdnode or cmdbuf is NULL\n");
if (!cmdnode) {
lbs_deb_host("QUEUE_CMD: cmdnode is NULL\n");
goto done;
}
if (!cmdnode->cmdbuf->size) {
Expand Down Expand Up @@ -1195,7 +1195,7 @@ void lbs_queue_cmd(struct lbs_private *priv,
spin_unlock_irqrestore(&priv->driver_lock, flags);

lbs_deb_host("QUEUE_CMD: inserted command 0x%04x into cmdpendingq\n",
le16_to_cpu(cmdnode->cmdbuf->command));
le16_to_cpu(cmdnode->cmdbuf->command));

done:
lbs_deb_leave(LBS_DEB_HOST);
Expand Down Expand Up @@ -1380,13 +1380,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,

lbs_deb_host("PREP_CMD: command 0x%04x\n", cmd_no);

if (!cmdptr) {
lbs_deb_host("PREP_CMD: cmdptr is NULL\n");
lbs_cleanup_and_insert_cmd(priv, cmdnode);
ret = -1;
goto done;
}

/* Set sequence number, command and INT option */
priv->seqnum++;
cmdptr->seqnum = cpu_to_le16(priv->seqnum);
Expand Down Expand Up @@ -1786,8 +1779,7 @@ static void cleanup_cmdnode(struct cmd_ctrl_node *cmdnode)
cmdnode->callback = NULL;
cmdnode->callback_arg = 0;

if (cmdnode->cmdbuf != NULL)
memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE);
memset(cmdnode->cmdbuf, 0, LBS_CMD_BUFFER_SIZE);

lbs_deb_leave(LBS_DEB_HOST);
}
Expand Down

0 comments on commit 2562dd1

Please sign in to comment.