wifi: ath11k: remove unused members of 'struct ath11k_base'
authorDmitry Antipov <dmantipov@yandex.ru>
Thu, 24 Aug 2023 07:50:45 +0000 (10:50 +0300)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 21 Sep 2023 08:14:50 +0000 (11:14 +0300)
Remove set but otherwise unused 'wlan_init_status' and
'wmi_ready' members of 'struct ath11k_base', adjust
'ath11k_wmi_tlv_rdy_parse()' accordingly.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230824075121.121144-2-dmantipov@yandex.ru
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/wmi.c

index b04447762483767ace826fe2cb4f934bc82584ae..650972f9d146a9c17f010a5e91d64cc9dc66924e 100644 (file)
@@ -901,8 +901,6 @@ struct ath11k_base {
        struct list_head peers;
        wait_queue_head_t peer_mapping_wq;
        u8 mac_addr[ETH_ALEN];
-       bool wmi_ready;
-       u32 wlan_init_status;
        int irq_num[ATH11K_IRQ_NUM_MAX];
        struct ath11k_ext_irq_grp ext_irq_grp[ATH11K_EXT_IRQ_GRP_NUM_MAX];
        struct ath11k_targ_cap target_caps;
index 23ad6825e5be584fd37d6c9d553d7a11779236e8..a5cf97368a14a67aa01c6d2cc541fc8f67ed4398 100644 (file)
@@ -7222,14 +7222,12 @@ static int ath11k_wmi_tlv_rdy_parse(struct ath11k_base *ab, u16 tag, u16 len,
                memset(&fixed_param, 0, sizeof(fixed_param));
                memcpy(&fixed_param, (struct wmi_ready_event *)ptr,
                       min_t(u16, sizeof(fixed_param), len));
-               ab->wlan_init_status = fixed_param.ready_event_min.status;
                rdy_parse->num_extra_mac_addr =
                        fixed_param.ready_event_min.num_extra_mac_addr;
 
                ether_addr_copy(ab->mac_addr,
                                fixed_param.ready_event_min.mac_addr.addr);
                ab->pktlog_defs_checksum = fixed_param.pktlog_defs_checksum;
-               ab->wmi_ready = true;
                break;
        case WMI_TAG_ARRAY_FIXED_STRUCT:
                addr_list = (struct wmi_mac_addr *)ptr;