confile_utils: cleanup lxc_get_netdev_by_idx()

parent 2c6c514a
...@@ -214,7 +214,7 @@ struct lxc_netdev *lxc_get_netdev_by_idx(struct lxc_conf *conf, ...@@ -214,7 +214,7 @@ struct lxc_netdev *lxc_get_netdev_by_idx(struct lxc_conf *conf,
} }
if (!allocate) if (!allocate)
return NULL; return ret_set_errno(NULL, EINVAL);
return lxc_network_add(insert, idx, true); return lxc_network_add(insert, idx, true);
} }
......
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