diff options
| author | Sven Eckelmann <sven@narfation.org> | 2026-06-02 17:41:15 +0200 |
|---|---|---|
| committer | Sven Eckelmann <sven@narfation.org> | 2026-06-05 09:12:06 +0200 |
| commit | b2e44a67ef4fb9593ea60c8c27f637bdeab40f09 (patch) | |
| tree | 40c61ce2fb586a3f09a72f876658ddb2f6e14784 | |
| parent | e9dc4072c54942c05f6b40f4d1d361ad46f5a0a3 (diff) | |
batman-adv: drop duplicated wifi_flags assignments
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 <sven@narfation.org>
| -rw-r--r-- | net/batman-adv/hard-interface.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index 43ebf86e7b36..96b8130375a3 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c @@ -987,7 +987,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); |
