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

index e0848c75bdbc194ecb96d6536d67593e02e4c25b..c173da7fb288e69837a284906029a071ed4e0f42 100644 (file)
@@ -5565,7 +5565,7 @@ static int get_config_net_type(const char *key, char *retv, int inlen,
                memset(retv, 0, inlen);
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        strprint(retv, inlen, "%s", lxc_net_type_to_str(netdev->type));