confile: cleanup get_config_net_name()

parent 5992d2dd
......@@ -5242,7 +5242,7 @@ static int get_config_net_name(const char *key, char *retv, int inlen,
memset(retv, 0, inlen);
if (!netdev)
return -1;
return ret_errno(EINVAL);
if (netdev->name[0] != '\0')
strprint(retv, inlen, "%s", netdev->name);
......
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