mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 06:06:53 +07:00
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>
This commit is contained in:
parent
fa290cda10
commit
60a052719a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user