Skip to content

Commit

Permalink
confile: cleanup get_config_net_link()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 9, 2020
1 parent 39d2d2d commit 30302ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -5606,7 +5606,7 @@ static int get_config_net_link(const char *key, char *retv, int inlen,
memset(retv, 0, inlen);

if (!netdev)
return -1;
return ret_errno(EINVAL);

if (netdev->link[0] != '\0')
strprint(retv, inlen, "%s", netdev->link);
Expand Down

0 comments on commit 30302ee

Please sign in to comment.