Skip to content

Commit 6488141

Browse files
JasonYanHwtytso
authored andcommitted
ext4: remove set but not used variable 'es' in ext4_jbd2.c
Fix the following gcc warning: fs/ext4/ext4_jbd2.c:341:30: warning: variable 'es' set but not used [-Wunused-but-set-variable] struct ext4_super_block *es; ^~ Fixes: 2ea2fc7 ("ext4: save all error info in save_error_info() and drop ext4_set_errno()") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Jason Yan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 05ca87c commit 6488141

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/ext4/ext4_jbd2.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line,
338338
if (inode && inode_needs_sync(inode)) {
339339
sync_dirty_buffer(bh);
340340
if (buffer_req(bh) && !buffer_uptodate(bh)) {
341-
struct ext4_super_block *es;
342-
343-
es = EXT4_SB(inode->i_sb)->s_es;
344341
ext4_error_inode_err(inode, where, line,
345342
bh->b_blocknr, EIO,
346343
"IO error syncing itable block");

0 commit comments

Comments
 (0)