From 7454d121090f60428777c01f431031059acc96eb Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Mon, 20 Aug 2018 14:28:00 +0200 Subject: interface: let interface_set_down() return void Let interface_set_down() return void as no usefull error code is returned by __interface_set_down() Signed-off-by: Hans Dedecker --- interface.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'interface.c') diff --git a/interface.c b/interface.c index 6fa51fa..b508b10 100644 --- a/interface.c +++ b/interface.c @@ -1078,7 +1078,7 @@ interface_set_up(struct interface *iface) interface_add_error(iface, "interface", error, NULL, 0); } -int +void interface_set_down(struct interface *iface) { if (!iface) { @@ -1088,8 +1088,6 @@ interface_set_down(struct interface *iface) iface->autostart = false; __interface_set_down(iface, false); } - - return 0; } int -- cgit v1.2.3