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>
This commit is contained in:
parent
8a98d49ec1
commit
4c2cde3b59
1 changed files with 0 additions and 4 deletions
|
@ -442,7 +442,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
|
||||||
struct iwl_cmd_meta *out_meta;
|
struct iwl_cmd_meta *out_meta;
|
||||||
dma_addr_t phys_addr;
|
dma_addr_t phys_addr;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int len;
|
|
||||||
u32 idx;
|
u32 idx;
|
||||||
u16 fix_size;
|
u16 fix_size;
|
||||||
bool is_ct_kill = false;
|
bool is_ct_kill = false;
|
||||||
|
@ -518,9 +517,6 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd)
|
||||||
INDEX_TO_SEQ(q->write_ptr));
|
INDEX_TO_SEQ(q->write_ptr));
|
||||||
if (cmd->flags & CMD_SIZE_HUGE)
|
if (cmd->flags & CMD_SIZE_HUGE)
|
||||||
out_cmd->hdr.sequence |= SEQ_HUGE_FRAME;
|
out_cmd->hdr.sequence |= SEQ_HUGE_FRAME;
|
||||||
len = sizeof(struct iwl_device_cmd);
|
|
||||||
if (idx == TFD_CMD_SLOTS)
|
|
||||||
len = IWL_MAX_CMD_SIZE;
|
|
||||||
|
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
switch (out_cmd->hdr.cmd) {
|
switch (out_cmd->hdr.cmd) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue