summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-05-24 17:38:12 -0600
committerBin Meng <bmeng.cn@gmail.com>2020-05-27 14:40:09 +0800
commitea38ee93ef5d5bfeb478c58b1cb470383a14e4b6 (patch)
treebb8a83fd2c8a8ff534d45c1cc20fa4c3f64c3792 /fs
parent30cf2ba7c6794c7b486c34aba2b25af66609bc42 (diff)
cbfs: Rename the result variable
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/cbfs/cbfs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c
index 1aa6f8ee84..70440aa80b 100644
--- a/fs/cbfs/cbfs.c
+++ b/fs/cbfs/cbfs.c
@@ -145,18 +145,18 @@ static void file_cbfs_fill_cache(struct cbfs_priv *priv, u8 *start, u32 size,
priv->file_cache = NULL;
while (size >= align) {
- int result;
+ int ret;
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);
- if (result < 0) {
+ if (ret < 0) {
free(new_node);
return;
- } else if (result == 0) {
+ } else if (ret == 0) {
free(new_node);
break;
}
@@ -341,15 +341,15 @@ const struct cbfs_cachenode *file_cbfs_find_uncached(uintptr_t end_of_rom,
align = priv->header.align;
while (size >= align) {
- int result;
+ int ret;
u32 used;
- result = file_cbfs_next_file(priv, start, size, align, &node,
- &used);
+ ret = file_cbfs_next_file(priv, start, size, align, &node,
+ &used);
- if (result < 0)
+ if (ret < 0)
return NULL;
- else if (result == 0)
+ else if (ret == 0)
break;
if (!strcmp(name, node.name))