diff mbox series

[2/2] wifi: mac80211: remove key data from get_key callback

Message ID 20240627104411.f8ac49a8cfe0.Ic01f775903f0acd10b9ba77eb39d4ed50e709173@changeid
State New
Headers show
Series [1/2] wifi: nl80211: don't give key data to userspace | expand

Commit Message

Johannes Berg June 27, 2024, 8:44 a.m. UTC
From: Johannes Berg <johannes.berg@intel.com>

This is now unused in nl80211, so there's no need to set
the pointer/length.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/mac80211/cfg.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 83ad6c9709fe..e77c7e7d5f56 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -742,9 +742,6 @@  static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
 		break;
 	}
 
-	params.key = key->conf.key;
-	params.key_len = key->conf.keylen;
-
 	callback(cookie, &params);
 	err = 0;