staging: rtl8192e: Remove variable dot11d_info
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 8 Dec 2023 18:19:51 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2023 14:07:07 +0000 (15:07 +0100)
Remove variable dot11d_info as it is unused. Remove unused struct
channel_list and empty struct rt_dot11d_info.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/2438971feb0c02c5c72776f57201a4011f249190.1701989555.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/dot11d.c
drivers/staging/rtl8192e/dot11d.h
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c

index c44ff26e8d619617eeee7fd6293551758191f9e7..8d89f962b3bf4064246876cbff31b3586fdb9811 100644 (file)
@@ -7,11 +7,6 @@
  ******************************************************************************/
 #include "dot11d.h"
 
-struct channel_list {
-       u8      channel[32];
-       u8      len;
-};
-
 void dot11d_channel_map(struct rtllib_device *ieee)
 {
 
index d047283f2cebbf954f029d8a889eb435b0d21466..98aa28d0cf72139566f90f187e7a805100c94506 100644 (file)
  *             2 - valid (passive scan)
  */
 
-struct rt_dot11d_info {
-};
-
-#define GET_DOT11D_INFO(__ieee_dev)                    \
-        ((struct rt_dot11d_info *)((__ieee_dev)->dot11d_info))
-
 void dot11d_channel_map(struct rtllib_device *ieee);
 
 #endif
index ec720f776639092bcb9455f854c4fc59b5712799..51dcea57a32925b6e78c9755eedf6bc31dc9b279 100644 (file)
@@ -1320,7 +1320,6 @@ struct rtllib_device {
        u16 scan_watch_dog;
 
        /* map of allowed channels. 0 is dummy */
-       void *dot11d_info;
        u8 active_channel_map[MAX_CHANNEL_NUMBER+1];
 
        int rate;       /* current rate */
index fdb0e76d20b094e2714006763691718af032c7fb..3c92eb401e8cc81941f08568342457a393ca09c3 100644 (file)
@@ -2077,9 +2077,6 @@ int rtllib_softmac_init(struct rtllib_device *ieee)
        ieee->link_state = MAC80211_NOLINK;
        for (i = 0; i < 5; i++)
                ieee->seq_ctrl[i] = 0;
-       ieee->dot11d_info = kzalloc(sizeof(struct rt_dot11d_info), GFP_ATOMIC);
-       if (!ieee->dot11d_info)
-               return -ENOMEM;
 
        ieee->link_detect_info.SlotIndex = 0;
        ieee->link_detect_info.SlotNum = 2;
@@ -2153,9 +2150,6 @@ void rtllib_softmac_free(struct rtllib_device *ieee)
        cancel_work_sync(&ieee->ips_leave_wq);
        cancel_work_sync(&ieee->wx_sync_scan_wq);
        cancel_work_sync(&ieee->ps_task);
-
-       kfree(ieee->dot11d_info);
-       ieee->dot11d_info = NULL;
 }
 
 static inline struct sk_buff *