From: Matthew Wilcox Date: Tue, 10 Apr 2018 23:36:33 +0000 (-0700) Subject: mac80211_hwsim: use DEFINE_IDA X-Git-Tag: v5.15~9050^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=60a052719af6cf34cee53c6b93b2d31cfc795de7;p=mirror_ubuntu-kernels.git mac80211_hwsim: use DEFINE_IDA This is preferred to opencoding an IDA_INIT. Link: http://lkml.kernel.org/r/20180313132639.17387-2-willy@infradead.org Signed-off-by: Matthew Wilcox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 6afe896e5cb8..96d26cfae90b 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -253,7 +253,7 @@ static inline void hwsim_clear_chanctx_magic(struct ieee80211_chanctx_conf *c) static unsigned int hwsim_net_id; -static struct ida hwsim_netgroup_ida = IDA_INIT; +static DEFINE_IDA(hwsim_netgroup_ida); struct hwsim_net { int netgroup;