iwlegacy: Remove unneeded variable ret
authorXu Wang <vulab@iscas.ac.cn>
Fri, 21 Feb 2020 10:43:03 +0000 (18:43 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 12 Mar 2020 13:41:22 +0000 (15:41 +0200)
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>
drivers/net/wireless/intel/iwlegacy/3945-mac.c
drivers/net/wireless/intel/iwlegacy/4965.c

index 206b43b9dff86118b38007130dad323eaaa6de6c..9167c3d2711dde05fcbb661e1aceffeac034885c 100644 (file)
@@ -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
index 34d0579132ce200da79bd4ae74bff915a6dfafec..fc8fa5818de7ece1be49ec589e8acafd2fcb59ca 100644 (file)
@@ -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;
@@ -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;
 }
 
 /**