scsi: sd_zbc: Remove superfluous assignments
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 24 Apr 2017 07:51:14 +0000 (16:51 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Apr 2017 17:00:57 +0000 (13:00 -0400)
commitf70532406aa4193e484b1e3c4d7d613f39257a44
treea2984f330fe4e577e592a3f4443b6c6de12ad50c
parenta90dfdc2dea1ce8ab87e3949c3c6bab3c1e36137
scsi: sd_zbc: Remove superfluous assignments

A value is assigned to the variable 'capacity' in sd_zbc_read_zones()
but that value is never used. Hence remove the variable 'capacity'.

[Damien: There is no need to initialize to 0 the variable 'ret'
in sd_zbc_read_zones()]

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd_zbc.c