Skip to content

Commit

Permalink
confile: cleanup get_config_net_ipvlan_isolation()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 9, 2020
1 parent dff2db4 commit 56ce674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/confile.c
Expand Up @@ -5726,18 +5726,18 @@ 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;
else
memset(retv, 0, inlen);

if (!netdev)
return ret_set_errno(-1, EINVAL);
return ret_errno(EINVAL);

if (netdev->type != LXC_NET_IPVLAN)
return 0;
Expand Down

0 comments on commit 56ce674

Please sign in to comment.