From: Christian Brauner Date: Tue, 8 Dec 2020 17:53:24 +0000 (+0100) Subject: confile: cleanup clr_config_net_macvlan_mode() X-Git-Tag: lxc-5.0.0~330^2~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0ea16c526f955b37969d9ad17afb02a321e75e0;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_macvlan_mode() Signed-off-by: Christian Brauner --- 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;