confile: cleanup get_config_net_flags()

parent ea9bf9f9
......@@ -5585,7 +5585,7 @@ static int get_config_net_flags(const char *key, char *retv, int inlen,
memset(retv, 0, inlen);
if (!netdev)
return -1;
return ret_errno(EINVAL);
if (netdev->flags & IFF_UP)
strprint(retv, inlen, "up");
......
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