Skip to content

Commit 59d8731

Browse files
committed
ext4: fix unused variable warning in ext4_init_new_dir
Cc: stable@kernel.org Fixes: 90f097b ("ext4: refactor the inline directory conversion and...") Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent f3fbaa7 commit 59d8731

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ext4/namei.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,6 @@ int ext4_init_new_dir(handle_t *handle, struct inode *dir,
29652965
struct inode *inode)
29662966
{
29672967
struct buffer_head *dir_block = NULL;
2968-
struct ext4_dir_entry_2 *de;
29692968
ext4_lblk_t block = 0;
29702969
int err;
29712970

@@ -2982,7 +2981,6 @@ int ext4_init_new_dir(handle_t *handle, struct inode *dir,
29822981
dir_block = ext4_append(handle, inode, &block);
29832982
if (IS_ERR(dir_block))
29842983
return PTR_ERR(dir_block);
2985-
de = (struct ext4_dir_entry_2 *)dir_block->b_data;
29862984
err = ext4_init_dirblock(handle, inode, dir_block, dir->i_ino, NULL, 0);
29872985
out:
29882986
brelse(dir_block);

0 commit comments

Comments
 (0)