confile: cleanup set_config_net_script_up()

parent d47e3831
...@@ -955,8 +955,9 @@ static int set_config_net_script_up(const char *key, const char *value, ...@@ -955,8 +955,9 @@ static int set_config_net_script_up(const char *key, const char *value,
if (!netdev) if (!netdev)
return ret_errno(EINVAL); return ret_errno(EINVAL);
clr_config_net_script_up(key, lxc_conf, data);
if (lxc_config_value_empty(value)) if (lxc_config_value_empty(value))
return clr_config_net_script_up(key, lxc_conf, data); return 0;
return set_config_string_item(&netdev->upscript, value); return set_config_string_item(&netdev->upscript, 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