From 56ce674701b190417d3d11a8b6bba7e49dcb044c Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 8 Dec 2020 19:02:47 +0100 Subject: [PATCH] confile: cleanup get_config_net_ipvlan_isolation() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index d8bfaaa10..d0034c175 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5726,10 +5726,10 @@ static int get_config_net_ipvlan_mode(const char *key, char *retv, int inlen, static int get_config_net_ipvlan_isolation(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; @@ -5737,7 +5737,7 @@ static int get_config_net_ipvlan_isolation(const char *key, char *retv, int inle memset(retv, 0, inlen); if (!netdev) - return ret_set_errno(-1, EINVAL); + return ret_errno(EINVAL); if (netdev->type != LXC_NET_IPVLAN) return 0; -- 2.47.2