At present the result variable in the cbfs_priv is called 'result' as is
the local variable in a few functions. Change the latter to 'ret' which is
more common in U-Boot and avoids confusion.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
priv->file_cache = NULL;
while (size >= align) {
priv->file_cache = NULL;
while (size >= align) {
u32 used;
new_node = (struct cbfs_cachenode *)
malloc(sizeof(struct cbfs_cachenode));
u32 used;
new_node = (struct cbfs_cachenode *)
malloc(sizeof(struct cbfs_cachenode));
- result = file_cbfs_next_file(priv, start, size, align, new_node,
- &used);
+ ret = file_cbfs_next_file(priv, start, size, align, new_node,
+ &used);
- } else if (result == 0) {
align = priv->header.align;
while (size >= align) {
align = priv->header.align;
while (size >= align) {
- result = file_cbfs_next_file(priv, start, size, align, &node,
- &used);
+ ret = file_cbfs_next_file(priv, start, size, align, &node,
+ &used);
break;
if (!strcmp(name, node.name))
break;
if (!strcmp(name, node.name))