]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup set_config_net_mtu()
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 Mar 2021 10:15:43 +0000 (12:15 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 29 Mar 2021 10:26:11 +0000 (12:26 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index ff4728c9e543dfed46233ed553918995a02957d1..6aa47f104b7e10bdf5b5385934df4787d85e25ec 100644 (file)
@@ -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);
 }