staging: rtl8192e: Remove unused variable country_watchdog
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 19 Nov 2023 22:15:32 +0000 (23:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 12:46:28 +0000 (12:46 +0000)
country_watchdog is initialized to 0 and then never changed. Remove
related macros and functions.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/958f2ebbedb51e71e11479f734b4df27484160e1.1700431464.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 b524ebe31869820161e1e076cf9b4db4a892b498..b8ba95a65f273ce4fe9279f62a73d6b552b9855a 100644 (file)
@@ -19,7 +19,6 @@ void dot11d_init(struct rtllib_device *ieee)
        struct rt_dot11d_info *dot11d_info = GET_DOT11D_INFO(ieee);
 
        memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1);
-       RESET_CIE_WATCHDOG(ieee);
 }
 EXPORT_SYMBOL(dot11d_init);
 
index 64fd39cddc22abf73959afc785973d835e886d79..82748b12bd826e1bd6c752ca5952b49560034ec0 100644 (file)
@@ -25,20 +25,12 @@ struct chnl_txpow_triple {
  */
 
 struct rt_dot11d_info {
-       u8  country_watchdog;
        u8  channel_map[MAX_CHANNEL_NUMBER + 1];
 };
 
 #define GET_DOT11D_INFO(__ieee_dev)                    \
         ((struct rt_dot11d_info *)((__ieee_dev)->dot11d_info))
 
-#define GET_CIE_WATCHDOG(__ieee_dev)                           \
-        (GET_DOT11D_INFO(__ieee_dev)->country_watchdog)
-static inline void RESET_CIE_WATCHDOG(struct rtllib_device *__ieee_dev)
-{
-       GET_CIE_WATCHDOG(__ieee_dev) = 0;
-}
-
 void dot11d_init(struct rtllib_device *dev);
 void dot11d_channel_map(struct rtllib_device *ieee);