confile: cleanup clr_config_net_macvlan_mode()

parent 0171e2a9
......@@ -5262,7 +5262,7 @@ static int clr_config_net_macvlan_mode(const char *key,
struct lxc_netdev *netdev = data;
if (!netdev)
return -1;
return ret_errno(EINVAL);
if (netdev->type != LXC_NET_MACVLAN)
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