summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-31 16:35:13 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-31 16:36:13 +0100
commit28735bd31f043d39f024d53e48ce767b95e5d70e (patch)
tree9168068fddf2abb2fd75803d3d0189eb9c272b49
parent902f904ed395521f56e5bfce8f5693cb7fd3805d (diff)
interface: do not clear errors after an interface is marked as down, the user might like to read them
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--interface.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/interface.c b/interface.c
index fddb861..77654fe 100644
--- a/interface.c
+++ b/interface.c
@@ -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;