Skip to content

Commit

Permalink
confile_utils: cleanup lxc_get_netdev_by_idx()
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 10, 2020
1 parent 1e323af commit 2a655c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile_utils.c
Expand Up @@ -214,7 +214,7 @@ struct lxc_netdev *lxc_get_netdev_by_idx(struct lxc_conf *conf,
}

if (!allocate)
return NULL;
return ret_set_errno(NULL, EINVAL);

return lxc_network_add(insert, idx, true);
}
Expand Down

0 comments on commit 2a655c0

Please sign in to comment.