]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_veth_mode()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:54:19 +0000 (18:54 +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 e95ab2faee7aee0b752e062509fd876ca01959b3..234a992520710b2f9e5a35519b31ec961e91770b 100644 (file)
@@ -5310,7 +5310,7 @@ static int clr_config_net_veth_mode(const char *key,
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               return ret_set_errno(-1, EINVAL);
+               return ret_errno(EINVAL);
 
        if (netdev->type != LXC_NET_VETH)
                return 0;