staging: rtl8192u: remove unnecessary function implementation
authorDeepak R Varma <drv@mailo.com>
Mon, 31 Oct 2022 17:55:39 +0000 (23:25 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 2 Nov 2022 07:26:41 +0000 (08:26 +0100)
This driver is a single standalone driver and does not have any loading
dependencies on another associated drivers. The build results in one
single .ko object. The current implementation of the function
ieee80211_tkip_null simply returns back to the caller without any useful
instruction executions. It does not lead to auto-loading of any other
associated modules as the initial design implementation appears to be.

Hence the call to ieee80211_tkip_null() and its implementation is
unnecessary and should be removed.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/6f5a4313fc21365bf733c25385aef79554ffb253.1667237959.git.drv@mailo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c

index 9cd4b18967459db6e5be3d4dcabcef751219b0b7..00c07455cbb3b3326dd7f3a96c7ce3ef52fe5aad 100644 (file)
@@ -232,8 +232,6 @@ struct cb_desc {
 
 #define ieee80211_ccmp_null            ieee80211_ccmp_null_rsl
 
-#define ieee80211_tkip_null            ieee80211_tkip_null_rsl
-
 #define free_ieee80211                 free_ieee80211_rsl
 #define alloc_ieee80211                        alloc_ieee80211_rsl
 
@@ -2256,7 +2254,6 @@ void ieee80211_ps_tx_ack(struct ieee80211_device *ieee, short success);
 void softmac_mgmt_xmit(struct sk_buff *skb, struct ieee80211_device *ieee);
 
 /* ieee80211_crypt_ccmp&tkip&wep.c */
-void ieee80211_tkip_null(void);
 
 int ieee80211_crypto_init(void);
 void ieee80211_crypto_deinit(void);
index 7b120b8cb9824db8576966a54cad4b78c7f7238c..9bfd24ad46b692ca3b95a3491ee4560449939f1e 100644 (file)
@@ -716,9 +716,3 @@ void ieee80211_crypto_tkip_exit(void)
 {
        ieee80211_unregister_crypto_ops(&ieee80211_crypt_tkip);
 }
-
-void ieee80211_tkip_null(void)
-{
-//    printk("============>%s()\n", __func__);
-       return;
-}
index b94fe9b449b6cef8ff37564d65d67d721bd26628..3f93939bc4ee0fee39bb2c72dee7a7585f66b937 100644 (file)
@@ -159,9 +159,6 @@ struct net_device *alloc_ieee80211(int sizeof_priv)
                ieee->last_packet_time[i] = 0;
        }
 
-/* These function were added to load crypte module autoly */
-       ieee80211_tkip_null();
-
        return dev;
 
  failed: