confile: cleanup get_config_net_ipvlan_mode()

parent 5e8c11f8
...@@ -5295,10 +5295,10 @@ static int get_config_net_macvlan_mode(const char *key, char *retv, int inlen, ...@@ -5295,10 +5295,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, static int get_config_net_ipvlan_mode(const char *key, char *retv, int inlen,
struct lxc_conf *c, void *data) struct lxc_conf *c, void *data)
{ {
int len;
int fulllen = 0; int fulllen = 0;
const char *mode;
struct lxc_netdev *netdev = data; struct lxc_netdev *netdev = data;
int len;
const char *mode;
if (!retv) if (!retv)
inlen = 0; inlen = 0;
...@@ -5306,7 +5306,7 @@ static int get_config_net_ipvlan_mode(const char *key, char *retv, int inlen, ...@@ -5306,7 +5306,7 @@ static int get_config_net_ipvlan_mode(const char *key, char *retv, int inlen,
memset(retv, 0, inlen); memset(retv, 0, inlen);
if (!netdev) if (!netdev)
return ret_set_errno(-1, EINVAL); return ret_errno(EINVAL);
if (netdev->type != LXC_NET_IPVLAN) if (netdev->type != LXC_NET_IPVLAN)
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment