Skip to content

Commit

Permalink
mac80211_hwsim: statically initialize hwsim_radios list
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Berg committed Sep 16, 2016
1 parent c68df2e commit b59abfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b59abfb

Please sign in to comment.