From 28735bd31f043d39f024d53e48ce767b95e5d70e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 31 Dec 2012 16:35:13 +0100 Subject: [PATCH] interface: do not clear errors after an interface is marked as down, the user might like to read them Signed-off-by: Felix Fietkau --- interface.c | 2 -- 1 file changed, 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; -- 2.25.1