]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/scsi/sd_zbc.c
scsi: sd_zbc: Rearrange code
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 10 Oct 2017 20:54:23 +0000 (05:54 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 03:54:32 +0000 (23:54 -0400)
commit5eed92d173e0bf695c690d6b903441bde36879fb
tree9b8db55f4b068c6f89223465a2dec711259f5646
parente98f42bcad202a7e89be37be556383b5de0a65d5
scsi: sd_zbc: Rearrange code

Rearrange sd_zbc_setup() to include use_16_for_rw and use_10_for_rw
assignments and move the calculation of sdkp->zone_shift together with
the assignment of the verified zone_blocks value in
sd_zbc_check_zone_size().

No functional change is introduced by this patch.

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