]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
scsi: sd_zbc: Use well defined macros
authorDamien Le Moal <damien.lemoal@wdc.com>
Tue, 10 Oct 2017 20:54:24 +0000 (05:54 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Oct 2017 03:54:33 +0000 (23:54 -0400)
Instead of open coding, use the min() macro to calculate a report zones
reply buffer length in sd_zbc_check_zone_size() and the round_up() macro
for calculating the number of zones in sd_zbc_setup().

No functional change is introduced by this patch.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

No differences found