Message ID | 20190717015149.23028-1-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 0cdc58580b37a160fac4b884266b8b7cb096f539 |
Headers | show |
Series | [V2] scsi: sd_zbc: Fix compilation warning | expand |
Damien, > kbuild test robot gets the following compilation warning using gcc 7.4 > cross compilation for c6x (GCC_VERSION=7.4.0 make.cross ARCH=c6x). Applied to 5.3/scsi-fixes, thanks!
diff --git a/drivers/scsi/sd_zbc.c b/drivers/scsi/sd_zbc.c index db16c19e05c4..5d6ff3931632 100644 --- a/drivers/scsi/sd_zbc.c +++ b/drivers/scsi/sd_zbc.c @@ -461,7 +461,7 @@ int sd_zbc_read_zones(struct scsi_disk *sdkp, unsigned char *buf) { struct gendisk *disk = sdkp->disk; unsigned int nr_zones; - u32 zone_blocks; + u32 zone_blocks = 0; int ret; if (!sd_is_zoned(sdkp))