summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 18:00:17 +1300
committerSimon Glass <sjg@chromium.org>2021-03-27 13:59:37 +1300
commitad66323a58cb6279aa9e8ba521a4daf25d0cbe79 (patch)
tree362fa82255601fe65056e634450d318492fca4db /fs
parenta202f17d7bc2a51af53352c6e21d6a70d167effe (diff)
downloadu-boot-ad66323a58cb6279aa9e8ba521a4daf25d0cbe79.tar.gz
cbfs: Drop unnecessary cast in file_cbfs_fill_cache()
The results of malloc() are a void * and so this cast is unnecessary. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/cbfs/cbfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c
index 443a148e3f..415ea28b87 100644
--- a/fs/cbfs/cbfs.c
+++ b/fs/cbfs/cbfs.c
@@ -202,8 +202,7 @@ static int file_cbfs_fill_cache(struct cbfs_priv *priv, int size, int align)
int used;
int ret;
- node = (struct cbfs_cachenode *)
- malloc(sizeof(struct cbfs_cachenode));
+ node = malloc(sizeof(struct cbfs_cachenode));
if (!node)
return -ENOMEM;
ret = file_cbfs_next_file(priv, start, size, align, node,