|
@@ -572,8 +572,7 @@ void batadv_hardif_disable_interface(struct batadv_hard_iface *hard_iface,
|
|
|
struct batadv_priv *bat_priv = netdev_priv(hard_iface->soft_iface);
|
|
|
struct batadv_hard_iface *primary_if = NULL;
|
|
|
|
|
|
- if (hard_iface->if_status == BATADV_IF_ACTIVE)
|
|
|
- batadv_hardif_deactivate_interface(hard_iface);
|
|
|
+ batadv_hardif_deactivate_interface(hard_iface);
|
|
|
|
|
|
if (hard_iface->if_status != BATADV_IF_INACTIVE)
|
|
|
goto out;
|