Commit 59d8731c authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix unused variable warning in ext4_init_new_dir



Cc: stable@kernel.org
Fixes: 90f097b1 ("ext4: refactor the inline directory conversion and...")
Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent f3fbaa74
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);