]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_macvlan_mode()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:53:24 +0000 (18:53 +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 a9759796fb419ae013365ddc65cb6ff5065202c8..cf91dbdd17173277e6f636f93a580d5109b75387 100644 (file)
@@ -5262,7 +5262,7 @@ static int clr_config_net_macvlan_mode(const char *key,
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        if (netdev->type != LXC_NET_MACVLAN)
                return 0;