projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a202f17
)
cbfs: Drop unnecessary cast in file_cbfs_fill_cache()
author
Simon Glass
<sjg@chromium.org>
Mon, 15 Mar 2021 05:00:17 +0000
(18:00 +1300)
committer
Simon Glass
<sjg@chromium.org>
Sat, 27 Mar 2021 00:59:37 +0000
(13:59 +1300)
The results of malloc() are a void * and so this cast is unnecessary. Drop
it.
Signed-off-by: Simon Glass <sjg@chromium.org>
fs/cbfs/cbfs.c
patch
|
blob
|
history
diff --git
a/fs/cbfs/cbfs.c
b/fs/cbfs/cbfs.c
index
443a148
..
415ea28
100644
(file)
--- 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,