[PATCH batadv 2/3] batman-adv: drop duplicated wifi_flags assigned
Sven Eckelmann <[email protected]>
| Newsgroups | org.open-mesh.lists.batman |
|---|---|
| Message-ID | <[email protected]> |
During the initialization of the batadv_wifi_net_device_state, it is enough to write the wifi_flags once before the batadv_wifi_net_device_state is added to the batadv_wifi_net_devices rhashtable. Signed-off-by: Sven Eckelmann <[email protected]> --- net/batman-adv/hard-interface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 213d4609..80eaac0e 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c @@ -976,7 +976,6 @@ batadv_wifi_net_device_insert(struct net_device *net_dev, u32 wifi_flags) if (!device_state) return -ENOMEM; - device_state->wifi_flags = wifi_flags; netdev_hold(net_dev, &device_state->dev_tracker, GFP_ATOMIC); device_state->netdev = net_dev; WRITE_ONCE(device_state->wifi_flags, wifi_flags); -- 2.47.3