mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-27 23:20:26 +09:00
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>
This commit is contained in:
parent
a202f17d7b
commit
ad66323a58
@ -202,8 +202,7 @@ static int file_cbfs_fill_cache(struct cbfs_priv *priv, int size, int align)
|
|||||||
int used;
|
int used;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
node = (struct cbfs_cachenode *)
|
node = malloc(sizeof(struct cbfs_cachenode));
|
||||||
malloc(sizeof(struct cbfs_cachenode));
|
|
||||||
if (!node)
|
if (!node)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
ret = file_cbfs_next_file(priv, start, size, align, node,
|
ret = file_cbfs_next_file(priv, start, size, align, node,
|
||||||
|
Loading…
Reference in New Issue
Block a user