mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
ext4: fix unused variable warning in ext4_init_new_dir
Cc: stable@kernel.org
Fixes: 90f097b140 ("ext4: refactor the inline directory conversion and...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user