Re: [PATCH -next] ext4: remove set but not used variable 'es' in ext4_jbd2.c

From: Theodore Y. Ts'o
Date: Mon Apr 13 2020 - 21:56:36 EST


On Thu, Apr 02, 2020 at 11:47:59AM +0800, Jason Yan wrote:
> 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: 2ea2fc775321 ("ext4: save all error info in save_error_info() and drop ext4_set_errno()")
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>

Applied, thanks.

- Ted