From: Christian Brauner Date: Mon, 29 Mar 2021 10:15:43 +0000 (+0200) Subject: confile: cleanup set_config_net_mtu() X-Git-Tag: lxc-5.0.0~232^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d0297b9ae653c4f99a4a41988460d96f03053b1;p=thirdparty%2Flxc.git confile: cleanup set_config_net_mtu() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index ff4728c9e..6aa47f104 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -705,8 +705,9 @@ static int set_config_net_mtu(const char *key, const char *value, if (!netdev) return ret_errno(EINVAL); + clr_config_net_mtu(key, lxc_conf, data); if (lxc_config_value_empty(value)) - return clr_config_net_mtu(key, lxc_conf, data); + return 0; return set_config_string_item(&netdev->mtu, value); }