summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a202f17)
raw | patch | inline | side by side (parent: a202f17)
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>
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 443a148e3f1001f88efab9c102b3b3972a3a5dd0..415ea28b871d36f95cecf7ee1b3ba46cbb36a39e 100644 (file)
--- a/fs/cbfs/cbfs.c
+++ b/fs/cbfs/cbfs.c
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,