Re: [PATCH -next] scsi: sd_zbc: Remove set but not used variable 'buflen'

From: Jens Axboe
Date: Mon Nov 18 2019 - 10:33:13 EST


On 11/15/19 6:18 AM, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/sd_zbc.c: In function 'sd_zbc_check_zones':
> drivers/scsi/sd_zbc.c:341:9: warning:
> variable 'buflen' set but not used [-Wunused-but-set-variable]
>
> It is not used since commit d9dd73087a8b ("block: Enhance
> blk_revalidate_disk_zones()")

Applied, thanks.

--
Jens Axboe