]> git.proxmox.com Git - mirror_qemu.git/commit
block: Remove unused masks
authorNir Soffer <nirsof@gmail.com>
Tue, 27 Aug 2019 18:59:13 +0000 (21:59 +0300)
committerMax Reitz <mreitz@redhat.com>
Mon, 16 Sep 2019 12:48:30 +0000 (14:48 +0200)
commit8972571509f15bd8e31fa9ded795a11e22c0d1d3
treeae80eebe154df6640c0cd0fbb34e386a73168cda
parent1bbbf32d5fffe334531c315d7bd865fdfb67b6c5
block: Remove unused masks

Replace confusing usage:

    ~BDRV_SECTOR_MASK

With more clear:

    (BDRV_SECTOR_SIZE - 1)

Remove BDRV_SECTOR_MASK and the unused BDRV_BLOCK_OFFSET_MASK which was
it's last user.

Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Message-id: 20190827185913.27427-3-nsoffer@redhat.com
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
include/block/block.h
migration/block.c