confile: cleanup set_config_net_l2proxy()

parent 958b4cf7
...@@ -431,7 +431,7 @@ static int set_config_net_l2proxy(const char *key, const char *value, ...@@ -431,7 +431,7 @@ static int set_config_net_l2proxy(const char *key, const char *value,
ret = lxc_safe_uint(value, &val); ret = lxc_safe_uint(value, &val);
if (ret < 0) if (ret < 0)
return ret_errno(-ret); return ret_errno(ret);
switch (val) { switch (val) {
case 0: case 0:
...@@ -442,7 +442,7 @@ static int set_config_net_l2proxy(const char *key, const char *value, ...@@ -442,7 +442,7 @@ static int set_config_net_l2proxy(const char *key, const char *value,
return 0; return 0;
} }
return ret_set_errno(-1, EINVAL); return ret_errno(EINVAL);
} }
static int set_config_net_name(const char *key, const char *value, static int set_config_net_name(const char *key, const char *value,
......
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