wifi: cfg80211: Deduplicate certificate loading
authorLukas Wunner <lukas@wunner.de>
Sun, 8 Jan 2023 17:08:08 +0000 (18:08 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 19 Jan 2023 13:46:45 +0000 (14:46 +0100)
commit3609ff6401c3660e859cda0dd944782ec8300e7e
tree815929d5c7ff10aac27fb6d3aef5efe53e0876c5
parente2192de59e457aef8d1f055a452131f0b3e5d097
wifi: cfg80211: Deduplicate certificate loading

load_keys_from_buffer() in net/wireless/reg.c duplicates
x509_load_certificate_list() in crypto/asymmetric_keys/x509_loader.c
for no apparent reason.

Deduplicate it.  No functional change intended.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Acked-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/e7280be84acda02634bc7cb52c97656182b9c700.1673197326.git.lukas@wunner.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
crypto/asymmetric_keys/x509_loader.c
net/wireless/reg.c