From ad66323a58cb6279aa9e8ba521a4daf25d0cbe79 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 15 Mar 2021 18:00:17 +1300 Subject: [PATCH] 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 --- fs/cbfs/cbfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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, -- 2.39.5