mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01: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 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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user