]> git.karo-electronics.de Git - linux-beck.git/commitdiff
libertas: Remove SET_BOOT2_VER support from the Big Switch Statement.
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 6 Dec 2007 14:44:21 +0000 (14:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:09 +0000 (15:06 -0800)
And the death of libertas_prepare_and_send_command() starts...

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c

index 851eb3ce3e124e64231e4f7ade602b01c5ad377b..b1ea878863a821fefd6668a2a516a29ce7b9a8c2 100644 (file)
@@ -974,17 +974,6 @@ static int lbs_cmd_bcn_ctrl(struct lbs_private * priv,
        return 0;
 }
 
-static int lbs_cmd_set_boot2_ver(struct lbs_private *priv,
-                               struct cmd_ds_command *cmd,
-                               u16 cmd_action, void *pdata_buf)
-{
-       struct cmd_ds_set_boot2_ver *boot2_ver = &cmd->params.boot2_ver;
-       cmd->command = cpu_to_le16(CMD_SET_BOOT2_VER);
-       cmd->size = cpu_to_le16(sizeof(struct cmd_ds_set_boot2_ver) + S_DS_GEN);
-       boot2_ver->version = priv->boot2_version;
-       return 0;
-}
-
 /*
  * Note: NEVER use lbs_queue_cmd() with addtail==0 other than for
  * the command timer, because it does not account for queued commands.
@@ -1470,10 +1459,6 @@ int lbs_prepare_and_send_command(struct lbs_private *priv,
                ret = lbs_cmd_mesh_access(priv, cmdptr, cmd_action, pdata_buf);
                break;
 
-       case CMD_SET_BOOT2_VER:
-               ret = lbs_cmd_set_boot2_ver(priv, cmdptr, cmd_action, pdata_buf);
-               break;
-
        case CMD_GET_TSF:
                cmdptr->command = cpu_to_le16(CMD_GET_TSF);
                cmdptr->size = cpu_to_le16(sizeof(struct cmd_ds_get_tsf) +