From: Christian Brauner Date: Tue, 8 Dec 2020 18:02:22 +0000 (+0100) Subject: confile: cleanup get_config_net_ipvlan_mode() X-Git-Tag: lxc-5.0.0~330^2~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dff2db4204b0188d119cfdfab174bcc2b1840115;p=thirdparty%2Flxc.git confile: cleanup get_config_net_ipvlan_mode() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index e7034e24d..d8bfaaa10 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5687,10 +5687,10 @@ static int get_config_net_macvlan_mode(const char *key, char *retv, int inlen, static int get_config_net_ipvlan_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; @@ -5698,7 +5698,7 @@ static int get_config_net_ipvlan_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_IPVLAN) return 0;