Skip to content

Commit b59abfb

Browse files
committed
mac80211_hwsim: statically initialize hwsim_radios list
There's no need to initialize at runtime, when the static declaration macro can just be used instead, so do that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent c68df2e commit b59abfb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/wireless/mac80211_hwsim.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static const struct ieee80211_iface_combination hwsim_if_comb_p2p_dev[] = {
487487
};
488488

489489
static spinlock_t hwsim_radio_lock;
490-
static struct list_head hwsim_radios;
490+
static LIST_HEAD(hwsim_radios);
491491
static int hwsim_radio_idx;
492492

493493
static struct platform_driver mac80211_hwsim_driver = {
@@ -3376,7 +3376,6 @@ static int __init init_mac80211_hwsim(void)
33763376
mac80211_hwsim_unassign_vif_chanctx;
33773377

33783378
spin_lock_init(&hwsim_radio_lock);
3379-
INIT_LIST_HEAD(&hwsim_radios);
33803379

33813380
err = register_pernet_device(&hwsim_net_ops);
33823381
if (err)

0 commit comments

Comments
 (0)