staging: rtl8192e: Remove variable channel_map
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 8 Dec 2023 18:19:45 +0000 (19:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Dec 2023 14:07:07 +0000 (15:07 +0100)
Remove variable channel_map as it is initialized but not used. Remove
channel_array as well as it is without channel_map unused.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/19ca762b4b9d5a3e857b31c22f0688324ca3bd9d.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

index d51d4afff61e8d11393b2950453c03c8d503a271..c44ff26e8d619617eeee7fd6293551758191f9e7 100644 (file)
@@ -12,18 +12,8 @@ struct channel_list {
        u8      len;
 };
 
-static struct channel_list channel_array = {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, 13};
-
 void dot11d_channel_map(struct rtllib_device *ieee)
 {
-       int i;
-
-       memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
-              sizeof(GET_DOT11D_INFO(ieee)->channel_map));
-       for (i = 0; i < channel_array.len; i++)
-               GET_DOT11D_INFO(ieee)->channel_map[channel_array.channel[i]] = 1;
 
-       for (i = 12; i <= 13; i++)
-               GET_DOT11D_INFO(ieee)->channel_map[i] = 2;
 }
 EXPORT_SYMBOL(dot11d_channel_map);
index 5c02e51c39cd2400139ea39deee4e0b26aed61f4..d047283f2cebbf954f029d8a889eb435b0d21466 100644 (file)
@@ -19,7 +19,6 @@
  */
 
 struct rt_dot11d_info {
-       u8  channel_map[MAX_CHANNEL_NUMBER + 1];
 };
 
 #define GET_DOT11D_INFO(__ieee_dev)                    \