confile: cleanup get_config_net_type()

parent 05a9b967
...@@ -5565,7 +5565,7 @@ static int get_config_net_type(const char *key, char *retv, int inlen, ...@@ -5565,7 +5565,7 @@ static int get_config_net_type(const char *key, char *retv, int inlen,
memset(retv, 0, inlen); memset(retv, 0, inlen);
if (!netdev) if (!netdev)
return -1; return ret_errno(EINVAL);
strprint(retv, inlen, "%s", lxc_net_type_to_str(netdev->type)); strprint(retv, inlen, "%s", lxc_net_type_to_str(netdev->type));
......
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