confile: cleanup get_config_net_link()

parent 61e8e8ee
...@@ -5214,7 +5214,7 @@ static int get_config_net_link(const char *key, char *retv, int inlen, ...@@ -5214,7 +5214,7 @@ static int get_config_net_link(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->link[0] != '\0') if (netdev->link[0] != '\0')
strprint(retv, inlen, "%s", netdev->link); strprint(retv, inlen, "%s", netdev->link);
......
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