ext4: fix unused variable warning in ext4_init_new_dir
authorTheodore Ts'o <tytso@mit.edu>
Thu, 31 Jul 2025 20:00:07 +0000 (16:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Aug 2025 03:15:05 +0000 (23:15 -0400)
Cc: stable@kernel.org
Fixes: 90f097b1403f ("ext4: refactor the inline directory conversion and...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c

index 01f379f5fd04a1c90b888bcf855cd40be0f14b2c..2cd36f59c9e363124ee949f742adccd88447295a 100644 (file)
@@ -2965,7 +2965,6 @@ int ext4_init_new_dir(handle_t *handle, struct inode *dir,
                             struct inode *inode)
 {
        struct buffer_head *dir_block = NULL;
-       struct ext4_dir_entry_2 *de;
        ext4_lblk_t block = 0;
        int err;
 
@@ -2982,7 +2981,6 @@ int ext4_init_new_dir(handle_t *handle, struct inode *dir,
        dir_block = ext4_append(handle, inode, &block);
        if (IS_ERR(dir_block))
                return PTR_ERR(dir_block);
-       de = (struct ext4_dir_entry_2 *)dir_block->b_data;
        err = ext4_init_dirblock(handle, inode, dir_block, dir->i_ino, NULL, 0);
 out:
        brelse(dir_block);