Skip to content

Commit

Permalink
ath11k: Fix 'unused-but-set-parameter' error
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Seevalamuthu Mariappan authored and Kalle Valo committed Nov 15, 2021
1 parent 31aeaf5 commit 624e0a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/wireless/ath/ath11k/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 624e0a3

Please sign in to comment.