From: Christian Brauner Date: Wed, 9 Dec 2020 08:26:24 +0000 (+0100) Subject: confile: cleanup get_config_net_veth_pair() X-Git-Tag: lxc-5.0.0~330^2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e86b4429ae4ae7af2f41fabc496362a1e1dda4b;p=thirdparty%2Flxc.git confile: cleanup get_config_net_veth_pair() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index df2d12eb7..f424b6dbe 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5811,7 +5811,7 @@ static int get_config_net_veth_pair(const char *key, char *retv, int inlen, memset(retv, 0, inlen); if (!netdev) - return -1; + return ret_errno(EINVAL); if (netdev->type != LXC_NET_VETH) return 0;