libertas: remove cmd_ctrl_node->cmdflags
authorHolger Schurig <h.schurig@mn-solutions.de>
Wed, 5 Dec 2007 16:57:56 +0000 (17:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:01 +0000 (15:06 -0800)
There was no code that ever did set this flag.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmdresp.c
drivers/net/wireless/libertas/hostcmd.h

index 90f1c4974fa76d7555fffa5bfe011d7e4c62cedb..cbd28ee7c5b8ef26babd098154950a9270ad10a0 100644 (file)
@@ -856,13 +856,6 @@ int lbs_process_rx_command(struct lbs_private *priv)
                goto done;
        }
 
-       if (adapter->cur_cmd->cmdflags & CMD_F_HOSTCMD) {
-               /* Copy the response back to response buffer */
-               memcpy(adapter->cur_cmd->pdata_buf, resp,
-                      le16_to_cpu(resp->size));
-               adapter->cur_cmd->cmdflags &= ~CMD_F_HOSTCMD;
-       }
-
        /* If the command is not successful, cleanup and return failure */
        if ((result != 0 || !(respcmd & 0x8000))) {
                lbs_deb_host("CMD_RESP: error 0x%04x in command reply 0x%04x\n",
index c029149007556c0aabead5df85b53e014e646fb3..217ae122fca9deae281560b72cc180af3b5d54bc 100644 (file)
@@ -75,7 +75,6 @@ struct cmd_ctrl_node {
        void *pdata_buf;
        /*command data */
        u8 *bufvirtualaddr;
-       u16 cmdflags;
        /* wait queue */
        u16 cmdwaitqwoken;
        wait_queue_head_t cmdwait_q;