Skip to content
Commit a4681681 authored by YueHaibing's avatar YueHaibing Committed by Jens Axboe
Browse files

scsi: sd_zbc: Remove set but not used variable 'buflen'



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 d9dd7308 ("block: Enhance
blk_revalidate_disk_zones()")

Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d4100351
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment