diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 18:00:17 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 13:59:37 +1300 |
commit | ad66323a58cb6279aa9e8ba521a4daf25d0cbe79 (patch) | |
tree | 362fa82255601fe65056e634450d318492fca4db /fs | |
parent | a202f17d7bc2a51af53352c6e21d6a70d167effe (diff) | |
download | u-boot-ad66323a58cb6279aa9e8ba521a4daf25d0cbe79.zip u-boot-ad66323a58cb6279aa9e8ba521a4daf25d0cbe79.tar.gz u-boot-ad66323a58cb6279aa9e8ba521a4daf25d0cbe79.tar.bz2 |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cbfs/cbfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 443a148..415ea28 100644 --- 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, |