bootstd: Tidy up var naming in bootdev_setup_iter_order()
Avoid using 'count' to mean either a count or an error, since this is confusing. In fact, the called function never return 0, since that is an error. Use 'ret' instead. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -604,14 +604,14 @@ int bootdev_setup_iter_order(struct bootflow_iter *iter, struct udevice **devp)
|
|||||||
log_debug("Expected %d bootdevs, found %d using aliases\n",
|
log_debug("Expected %d bootdevs, found %d using aliases\n",
|
||||||
count, upto);
|
count, upto);
|
||||||
|
|
||||||
count = build_order(bootstd, order, upto);
|
ret = build_order(bootstd, order, upto);
|
||||||
if (count < 0) {
|
if (ret < 0) {
|
||||||
free(order);
|
free(order);
|
||||||
return log_msg_ret("build", count);
|
return log_msg_ret("build", ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iter->num_devs = ret;
|
||||||
iter->dev_order = order;
|
iter->dev_order = order;
|
||||||
iter->num_devs = count;
|
|
||||||
iter->cur_dev = 0;
|
iter->cur_dev = 0;
|
||||||
|
|
||||||
dev = *order;
|
dev = *order;
|
||||||
|
Reference in New Issue
Block a user