Skip to contentSkip to conversation

Staging: rtl8192u: remove ieee80211_ccmp_null()

PATCH In review mike dupuis 2 participants 3 messages Oct 3, 2015 – Oct 4, 2015 1 message not in the archive Staging

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 Staging: rtl8192u: remove ieee80211_ccmp_null()

This is a patch to remove the function ieee80211_ccmp_null(). This function does nothing and can therefore be safely removed.

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +0 -3
index 61edd57..af22ee5 100644
@@ -175,9 +175,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_ccmp_null();
-
 	return dev;
 
  failed:
Signature · 6 lines
2.1.4


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
maintainer
#1 lore raw
Quoted 13 lines · mike dupuis

This is a patch to remove the function ieee80211_ccmp_null(). This function does nothing and can therefore be safely removed.

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +0 -0
index 61edd57..af22ee5 100644

drivers/staging/rtl8192u/ieee80211/ieee80211_module.c struct net_device *alloc_ieee80211(int sizeof_priv) · line 180

Quoted 6 lines
drivers/staging/rtl8192u/ieee80211/ieee80211_module.c +0 -3
@@ -175,9 +175,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_ccmp_null();
-

You didn't remove the function, only the call to it.

And I think you just broke the "autoload" logic that these "call a null function" function calls were trying to solve, which isn't good at all. Have you verified that everything correctly auto-loads when the device is plugged into the system?

thanks,

greg k-h

A message that is not in the archive (sent off-list or not yet received): CABTjXUT5E3oK1e8OxqTDc+1wmoHxMFV4SM8RmJE_FhtEmg48cw@mail.gmail.com

maintainer
#3 lore raw
Quoted 5 lines · Mike Dupuis
Quoted 2 lines

And I think you just broke the "autoload" logic that these "call a null function" function calls were trying to solve, which isn't good at all.

I guess this bit is lost on me-- how does calling a function from a previously unused object affect the state of a driver or kernel module?

It forces the module where that function is to be loaded into memory before this function can be called.

That is if we have multiple modules here, I haven't looked at the code in a long time to verify it, but note, you are totally ignoring the comment put there in the code that says this.

greg k-h