From a0ea16c526f955b37969d9ad17afb02a321e75e0 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 8 Dec 2020 18:53:24 +0100 Subject: [PATCH] confile: cleanup clr_config_net_macvlan_mode() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index a9759796f..cf91dbdd1 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5262,7 +5262,7 @@ static int clr_config_net_macvlan_mode(const char *key, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); if (netdev->type != LXC_NET_MACVLAN) return 0; -- 2.47.2