summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-02 19:03:48 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-02 19:03:51 +0200
commit7233afd94910cb4583c9555840a990287fd5d642 (patch)
treefe300b979d0a1d89b03c4594422650e1c78f5b65 /interface.c
parent575ce65d9fd648239ff8574c13bf2da370518d04 (diff)
interface: do not set l3_dev along with main_dev anymore
Made unnecessary by recent fixes to l3_dev handling Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/interface.c b/interface.c
index 684fd22..f474246 100644
--- a/interface.c
+++ b/interface.c
@@ -775,15 +775,11 @@ interface_set_l3_dev(struct interface *iface, struct device *dev)
void
interface_set_main_dev(struct interface *iface, struct device *dev)
{
- bool set_l3 = (!dev || iface->main_dev.dev == iface->l3_dev.dev);
bool claimed = iface->l3_dev.claimed;
if (iface->main_dev.dev == dev)
return;
- if (set_l3)
- interface_set_l3_dev(iface, dev);
-
device_add_user(&iface->main_dev, dev);
if (!dev) {
interface_set_link_state(iface, false);