mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue