Skip to content

Commit

Permalink
iwlegacy: Remove unneeded variable ret
Browse files Browse the repository at this point in the history
Remove unneeded variable ret used to store return value.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  • Loading branch information
Xu Wang authored and Kalle Valo committed Mar 12, 2020
1 parent 871b4b4 commit 3104432
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/intel/iwlegacy/3945-mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,7 @@ il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
static int
il3945_remove_static_key(struct il_priv *il)
{
int ret = -EOPNOTSUPP;

return ret;
return -EOPNOTSUPP;
}

static int
Expand Down
3 changes: 1 addition & 2 deletions drivers/net/wireless/intel/iwlegacy/4965.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ il4965_set_ucode_ptrs(struct il_priv *il)
{
dma_addr_t pinst;
dma_addr_t pdata;
int ret = 0;

/* bits 35:4 for 4965 */
pinst = il->ucode_code.p_addr >> 4;
Expand All @@ -433,7 +432,7 @@ il4965_set_ucode_ptrs(struct il_priv *il)
il->ucode_code.len | BSM_DRAM_INST_LOAD);
D_INFO("Runtime uCode pointers are set.\n");

return ret;
return 0;
}

/**
Expand Down

0 comments on commit 3104432

Please sign in to comment.