From: Simon Glass Date: Mon, 15 Mar 2021 05:00:17 +0000 (+1300) Subject: cbfs: Drop unnecessary cast in file_cbfs_fill_cache() X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=ad66323a58cb6279aa9e8ba521a4daf25d0cbe79;p=u-boot.git 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 --- diff --git a/fs/cbfs/cbfs.c b/fs/cbfs/cbfs.c index 443a148e3f..415ea28b87 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,