From c30365b90ab26fa991751119cde047312d370cab Mon Sep 17 00:00:00 2001 From: Yu Zhe Date: Fri, 1 Apr 2022 01:13:21 -0700 Subject: ext4: remove unnecessary type castings remove unnecessary void* type castings. Signed-off-by: Yu Zhe Link: https://lore.kernel.org/r/20220401081321.73735-1-yuzhe@nfschina.com Signed-off-by: Theodore Ts'o --- fs/ext4/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/ext4/dir.c') diff --git a/fs/ext4/dir.c b/fs/ext4/dir.c index a6bb86f52b9a..fc982d2dc071 100644 --- a/fs/ext4/dir.c +++ b/fs/ext4/dir.c @@ -648,7 +648,7 @@ int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf, unsigned int offset = 0; char *top; - de = (struct ext4_dir_entry_2 *)buf; + de = buf; top = buf + buf_size; while ((char *) de < top) { if (ext4_check_dir_entry(dir, NULL, de, bh, -- cgit v1.2.3