diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-04-28 10:27:07 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-06 13:45:58 -0400 |
commit | 4c2cde3b59d923d2952ef0accdde892e23b4997b (patch) | |
tree | dc86f81ac84f7dea92a8c96dac78e7c8e3a078bd /drivers/net/wireless/iwlwifi | |
parent | 8a98d49ec1f38d9f3eef7e34f148c3f1f5590fdf (diff) |
iwlagn: remove unused variable
The variable 'len' here is set but never used.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 608d7a12c438..517d1049d7d9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -442,7 +442,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
442 | struct iwl_cmd_meta *out_meta; | 442 | struct iwl_cmd_meta *out_meta; |
443 | dma_addr_t phys_addr; | 443 | dma_addr_t phys_addr; |
444 | unsigned long flags; | 444 | unsigned long flags; |
445 | int len; | ||
446 | u32 idx; | 445 | u32 idx; |
447 | u16 fix_size; | 446 | u16 fix_size; |
448 | bool is_ct_kill = false; | 447 | bool is_ct_kill = false; |
@@ -518,9 +517,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) | |||
518 | INDEX_TO_SEQ(q->write_ptr)); | 517 | INDEX_TO_SEQ(q->write_ptr)); |
519 | if (cmd->flags & CMD_SIZE_HUGE) | 518 | if (cmd->flags & CMD_SIZE_HUGE) |
520 | out_cmd->hdr.sequence |= SEQ_HUGE_FRAME; | 519 | out_cmd->hdr.sequence |= SEQ_HUGE_FRAME; |
521 | len = sizeof(struct iwl_device_cmd); | ||
522 | if (idx == TFD_CMD_SLOTS) | ||
523 | len = IWL_MAX_CMD_SIZE; | ||
524 | 520 | ||
525 | #ifdef CONFIG_IWLWIFI_DEBUG | 521 | #ifdef CONFIG_IWLWIFI_DEBUG |
526 | switch (out_cmd->hdr.cmd) { | 522 | switch (out_cmd->hdr.cmd) { |