From: Christian Brauner Date: Tue, 8 Dec 2020 18:03:09 +0000 (+0100) Subject: confile: cleanup get_config_net_veth_mode() X-Git-Tag: lxc-5.0.0~330^2~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d6ccf8c5f0b7c44d48f45af9da0e701638bf2d9;p=thirdparty%2Flxc.git confile: cleanup get_config_net_veth_mode() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index d0034c175..df2d12eb7 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5765,10 +5765,10 @@ static int get_config_net_ipvlan_isolation(const char *key, char *retv, int inle static int get_config_net_veth_mode(const char *key, char *retv, int inlen, struct lxc_conf *c, void *data) { - int len; int fulllen = 0; - const char *mode; struct lxc_netdev *netdev = data; + int len; + const char *mode; if (!retv) inlen = 0; @@ -5776,7 +5776,7 @@ static int get_config_net_veth_mode(const char *key, char *retv, int inlen, memset(retv, 0, inlen); if (!netdev) - return ret_set_errno(-1, EINVAL); + return ret_errno(EINVAL); if (netdev->type != LXC_NET_VETH) return 0;