diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 1e040e0bc4879b685194978873ea08522aef9b0f..f92b5cc115e2e8592d61c340514527f956d695c9 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -696,7 +696,6 @@ void __ext4_error_file(struct file *file, const char *function,
 {
 	va_list args;
 	struct va_format vaf;
-	struct ext4_super_block *es;
 	struct inode *inode = file_inode(file);
 	char pathname[80], *path;
 
@@ -704,7 +703,6 @@ void __ext4_error_file(struct file *file, const char *function,
 		return;
 
 	trace_ext4_error(inode->i_sb, function, line);
-	es = EXT4_SB(inode->i_sb)->s_es;
 	if (ext4_error_ratelimit(inode->i_sb)) {
 		path = file_path(file, pathname, sizeof(pathname));
 		if (IS_ERR(path))