interface: do not clear errors after an interface is marked as down, the user might...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 15:35:13 +0000 (16:35 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Dec 2012 15:36:13 +0000 (16:36 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c

index fddb861b09fea310217fe435642cd6465e2abd80..77654fe1d6edab28908ab076e8578fca81b7ba99 100644 (file)
@@ -214,8 +214,6 @@ mark_interface_down(struct interface *iface)
 void
 __interface_set_down(struct interface *iface, bool force)
 {
-       interface_clear_errors(iface);
-
        if (iface->state == IFS_DOWN ||
                iface->state == IFS_TEARDOWN)
                return;