projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa290cd
)
mac80211_hwsim: use DEFINE_IDA
author
Matthew Wilcox
<
[email protected]
>
Tue, 10 Apr 2018 23:36:33 +0000
(16:36 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Apr 2018 17:28:39 +0000
(10:28 -0700)
This is preferred to opencoding an IDA_INIT.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Matthew Wilcox <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/net/wireless/mac80211_hwsim.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mac80211_hwsim.c
b/drivers/net/wireless/mac80211_hwsim.c
index 6afe896e5cb84f8833c69787cae2dbdaaa8de1e9..96d26cfae90bd2acf55854f4818f11d4b14f2f5a 100644
(file)
--- 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;