mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
batman-adv: drop unneeded goto and initialization from batadv_hardif_disable_interface()
The only use of the label was too early for primary_if to be set anyways. Also move the put of primary_if further up to hold the reference only as long as necessary, hopefully avoiding the need to re-introduce the goto label with future code changes. Signed-off-by: Nora Schiffer <neocturne@universe-factory.net> Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
cbda6a6cf2
commit
2b429dbc50
1 changed files with 3 additions and 5 deletions
Loading…
Add table
Add a link
Reference in a new issue