Skip to content

Commit 05ca87c

Browse files
JasonYanHwtytso
authored andcommitted
ext4: remove set but not used variable 'es'
Fix the following gcc warning: fs/ext4/super.c:599:27: 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 801674f commit 05ca87c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/ext4/super.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,15 +596,13 @@ void __ext4_error_file(struct file *file, const char *function,
596596
{
597597
va_list args;
598598
struct va_format vaf;
599-
struct ext4_super_block *es;
600599
struct inode *inode = file_inode(file);
601600
char pathname[80], *path;
602601

603602
if (unlikely(ext4_forced_shutdown(EXT4_SB(inode->i_sb))))
604603
return;
605604

606605
trace_ext4_error(inode->i_sb, function, line);
607-
es = EXT4_SB(inode->i_sb)->s_es;
608606
if (ext4_error_ratelimit(inode->i_sb)) {
609607
path = file_path(file, pathname, sizeof(pathname));
610608
if (IS_ERR(path))

0 commit comments

Comments
 (0)