From: Christian Brauner Date: Tue, 8 Dec 2020 18:01:58 +0000 (+0100) Subject: confile: cleanup get_config_net_macvlan_mode() X-Git-Tag: lxc-5.0.0~330^2~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d72edbef79bf7013c3a8883e7c89e3d369e02d7;p=thirdparty%2Flxc.git confile: cleanup get_config_net_macvlan_mode() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index a38b015ed..e7034e24d 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5656,7 +5656,7 @@ static int get_config_net_macvlan_mode(const char *key, char *retv, int inlen, memset(retv, 0, inlen); if (!netdev) - return -1; + return ret_errno(EINVAL); if (netdev->type != LXC_NET_MACVLAN) return 0;