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:
Nora Schiffer 2026-06-28 17:07:33 +02:00 • committed by Sven Eckelmann
commit 2b429dbc50
No known key found for this signature in database
GPG key ID: 4D0F772BD314F5CB