OSDN Git Service

ath10k: fix compilation warning
authorTamizh Chelvam <tamizhr@codeaurora.org>
Wed, 4 Nov 2020 16:37:17 +0000 (22:07 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 07:56:39 +0000 (09:56 +0200)
This change fixes below compilation warning.

smatch warnings:
 drivers/net/wireless/ath/ath10k/mac.c:9125 ath10k_mac_op_set_tid_config() error: uninitialized symbol 'ret'.

No functional changes. Compile tested only.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tamizh Chelvam <tamizhr@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1604507837-29361-1-git-send-email-tamizhr@codeaurora.org
drivers/net/wireless/ath/ath10k/mac.c

index c857cf4..fad08c6 100644 (file)
@@ -9169,10 +9169,11 @@ static int ath10k_mac_op_set_tid_config(struct ieee80211_hw *hw,
                        goto exit;
        }
 
+       ret = 0;
+
        if (sta)
                goto exit;
 
-       ret = 0;
        arvif->tids_rst = 0;
        data.curr_vif = vif;
        data.ar = ar;