Commit 31044326 authored by Xu Wang's avatar Xu Wang Committed by Kalle Valo

iwlegacy: Remove unneeded variable ret

Remove unneeded variable ret used to store return value.
Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Acked-by: default avatarStanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 871b4b48
...@@ -228,9 +228,7 @@ il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf, ...@@ -228,9 +228,7 @@ il3945_set_dynamic_key(struct il_priv *il, struct ieee80211_key_conf *keyconf,
static int static int
il3945_remove_static_key(struct il_priv *il) il3945_remove_static_key(struct il_priv *il)
{ {
int ret = -EOPNOTSUPP; return -EOPNOTSUPP;
return ret;
} }
static int static int
......
...@@ -416,7 +416,6 @@ il4965_set_ucode_ptrs(struct il_priv *il) ...@@ -416,7 +416,6 @@ il4965_set_ucode_ptrs(struct il_priv *il)
{ {
dma_addr_t pinst; dma_addr_t pinst;
dma_addr_t pdata; dma_addr_t pdata;
int ret = 0;
/* bits 35:4 for 4965 */ /* bits 35:4 for 4965 */
pinst = il->ucode_code.p_addr >> 4; pinst = il->ucode_code.p_addr >> 4;
...@@ -433,7 +432,7 @@ il4965_set_ucode_ptrs(struct il_priv *il) ...@@ -433,7 +432,7 @@ il4965_set_ucode_ptrs(struct il_priv *il)
il->ucode_code.len | BSM_DRAM_INST_LOAD); il->ucode_code.len | BSM_DRAM_INST_LOAD);
D_INFO("Runtime uCode pointers are set.\n"); D_INFO("Runtime uCode pointers are set.\n");
return ret; return 0;
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment