aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wilcox <mawilcox@microsoft.com>2018-04-10 19:36:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-04-11 13:28:39 -0400
commit60a052719af6cf34cee53c6b93b2d31cfc795de7 (patch)
treed285f469858e6931812999f90fc4a386df69803e
parentfa290cda102c096f5ca394277d65d3dbd689930b (diff)
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 <mawilcox@microsoft.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
1 files changed, 1 insertions, 1 deletions
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)
253 253
254static unsigned int hwsim_net_id; 254static unsigned int hwsim_net_id;
255 255
256static struct ida hwsim_netgroup_ida = IDA_INIT; 256static DEFINE_IDA(hwsim_netgroup_ida);
257 257
258struct hwsim_net { 258struct hwsim_net {
259 int netgroup; 259 int netgroup;