]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_ipvlan_isolation()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:54:02 +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 9ddf2cf48356b710ba3d11031bef376d3927e4c9..e95ab2faee7aee0b752e062509fd876ca01959b3 100644 (file)
@@ -5294,7 +5294,7 @@ static int clr_config_net_ipvlan_isolation(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_IPVLAN)
                return 0;