confile: cleanup get_config_net_script_up()

parent b16e2e3c
...@@ -5445,7 +5445,7 @@ static int get_config_net_script_up(const char *key, char *retv, int inlen, ...@@ -5445,7 +5445,7 @@ static int get_config_net_script_up(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);
if (netdev->upscript) if (netdev->upscript)
strprint(retv, inlen, "%s", netdev->upscript); strprint(retv, inlen, "%s", netdev->upscript);
......
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