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

index a38b015ed99e664e41a9a07337652b650d1eac37..e7034e24daf0a36e6ae096876f065d697364ba0e 100644 (file)
@@ -5656,7 +5656,7 @@ static int get_config_net_macvlan_mode(const char *key, char *retv, int inlen,
                memset(retv, 0, inlen);
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        if (netdev->type != LXC_NET_MACVLAN)
                return 0;