aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeevalamuthu Mariappan <quic_seevalam@quicinc.com>2021-11-11 11:22:47 +0530
committerKalle Valo <kvalo@codeaurora.org>2021-11-15 11:18:25 +0200
commit624e0a3170309eeb5b729f7a43c1ba3234325f02 (patch)
treed8a20ca8249d7abcc5f468ec1743811e2d7ab458
parent31aeaf547d7e3b64ba5d5442dabc530bdb9e216e (diff)
downloadath-624e0a317030.tar.gz
ath11k: Fix 'unused-but-set-parameter' error
Below compilation error is reported when built with W=1, drivers/net/wireless/ath/ath11k/mac.c:5408:22: error: parameter 'changed_flags' set but not used [-Werror,-Wunused-but-set-parameter] changed_flags is set, but left unused. So, remove unnecessary set. Compile tested only. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Seevalamuthu Mariappan <quic_seevalam@quicinc.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1636609967-5114-1-git-send-email-quic_seevalam@quicinc.com
-rw-r--r--drivers/net/wireless/ath/ath11k/mac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c
index 5439a79188423..7bfe6fcdcb9a2 100644
--- a/drivers/net/wireless/ath/ath11k/mac.c
+++ b/drivers/net/wireless/ath/ath11k/mac.c
@@ -5961,7 +5961,6 @@ static void ath11k_mac_op_configure_filter(struct ieee80211_hw *hw,
mutex_lock(&ar->conf_mutex);
- changed_flags &= SUPPORTED_FILTERS;
*total_flags &= SUPPORTED_FILTERS;
ar->filter_flags = *total_flags;