diff options
| author | 2016-09-15 16:30:03 +0300 | |
|---|---|---|
| committer | 2016-09-16 14:49:43 +0200 | |
| commit | b59abfbed638037f3b51eeb73266892cd2df177f (patch) | |
| tree | 647d4d38dd02f473f895adca36fb7b74f3cefc89 | |
| parent | mac80211: allow using AP_LINK_PS with mac80211-generated TIM IE (diff) | |
| download | linux-dev-b59abfbed638037f3b51eeb73266892cd2df177f.tar.xz linux-dev-b59abfbed638037f3b51eeb73266892cd2df177f.zip  | |
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>
| -rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 8c35ac838fce..431f13b4faf6 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -487,7 +487,7 @@ static const struct ieee80211_iface_combination hwsim_if_comb_p2p_dev[] = {  };  static spinlock_t hwsim_radio_lock; -static struct list_head hwsim_radios; +static LIST_HEAD(hwsim_radios);  static int hwsim_radio_idx;  static struct platform_driver mac80211_hwsim_driver = { @@ -3376,7 +3376,6 @@ static int __init init_mac80211_hwsim(void)  		mac80211_hwsim_unassign_vif_chanctx;  	spin_lock_init(&hwsim_radio_lock); -	INIT_LIST_HEAD(&hwsim_radios);  	err = register_pernet_device(&hwsim_net_ops);  	if (err)  | 
