wifi: ath11k: Remove struct ath11k::ops
authorJeff Johnson <quic_jjohnson@quicinc.com>
Mon, 6 Nov 2023 18:21:04 +0000 (10:21 -0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Wed, 22 Nov 2023 18:24:10 +0000 (20:24 +0200)
Currently struct ath11k defines the following member:
        struct ieee80211_ops *ops;

This is being flagged by checkpatch.pl:
WARNING: struct ieee80211_ops should normally be const

The original plan was to add the const qualifier.  However, it turns
out this is actually unused, so remove it.

No functional changes, compile tested only.

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20231106-ath12k-remove-ieee80211_ops-v1-1-d72cef1a855b@quicinc.com
drivers/net/wireless/ath/ath11k/core.h

index f12b606e2d2e566340fa60db1e6e7e8e70174f23..7e3b6779f4e969369a9e6713b9235241efa9ac44 100644 (file)
@@ -599,7 +599,6 @@ struct ath11k {
        struct ath11k_base *ab;
        struct ath11k_pdev *pdev;
        struct ieee80211_hw *hw;
-       struct ieee80211_ops *ops;
        struct ath11k_pdev_wmi *wmi;
        struct ath11k_pdev_dp dp;
        u8 mac_addr[ETH_ALEN];