]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
iwlagn: remove get_hcmd_size indirection
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Apr 2011 14:27:05 +0000 (07:27 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 6 May 2011 17:45:46 +0000 (10:45 -0700)
There's no need for this, all commands are the right size.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-hcmd.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-tx.c

index 49dd03f9fedacf785277b36a0a9f2694164b5e44..b12c72d63ccb94fd0e2628667ed8b1bbb3b2d5fd 100644 (file)
@@ -54,12 +54,6 @@ int iwlagn_send_tx_ant_config(struct iwl_priv *priv, u8 valid_tx_ant)
        }
 }
 
-/* Currently this is the superset of everything */
-static u16 iwlagn_get_hcmd_size(u8 cmd_id, u16 len)
-{
-       return len;
-}
-
 static u16 iwlagn_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)
 {
        u16 size = (u16)sizeof(struct iwl_addsta_cmd);
@@ -332,7 +326,6 @@ struct iwl_hcmd_ops iwlagn_bt_hcmd = {
 };
 
 struct iwl_hcmd_utils_ops iwlagn_hcmd_utils = {
-       .get_hcmd_size = iwlagn_get_hcmd_size,
        .build_addsta_hcmd = iwlagn_build_addsta_hcmd,
        .gain_computation = iwlagn_gain_computation,
        .chain_noise_reset = iwlagn_chain_noise_reset,
index dec9820753f8d8aa43db0180dab6d301efa1180e..9d7e36d0fb2a5f39416f3a8297b7db443b976db3 100644 (file)
@@ -99,7 +99,6 @@ struct iwl_hcmd_ops {
 };
 
 struct iwl_hcmd_utils_ops {
-       u16 (*get_hcmd_size)(u8 cmd_id, u16 len);
        u16 (*build_addsta_hcmd)(const struct iwl_addsta_cmd *cmd, u8 *data);
        void (*gain_computation)(struct iwl_priv *priv,
                        u32 *average_noise,
index 52b1b66f32d0c026e6fe84d1d606d76e7ed8b995..608d7a12c4387cc162144038dfec7133f9f46819 100644 (file)
@@ -447,7 +447,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
        u16 fix_size;
        bool is_ct_kill = false;
 
-       cmd->len = priv->cfg->ops->utils->get_hcmd_size(cmd->id, cmd->len);
        fix_size = (u16)(cmd->len + sizeof(out_cmd->hdr));
 
        /*