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

index f376133e889d338e18a213e615ff824e7c7f772a..617f2e62bdaffc1a43399ef3aff6b51f42923f20 100644 (file)
@@ -5197,7 +5197,7 @@ static int clr_config_net_type(const char *key, struct lxc_conf *lxc_conf,
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        netdev->type = -1;