]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_link()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:52:49 +0000 (18:52 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:43 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 0ed8c125961d3e7bb450d35280553757d09979f6..3f8c056db921ad39bdd5d3c5d291e4e785b20b83 100644 (file)
@@ -5236,7 +5236,7 @@ static int clr_config_net_link(const char *key, struct lxc_conf *lxc_conf,
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        netdev->link[0] = '\0';