diff options
author | Nir Soffer | 2019-08-27 20:59:12 +0200 |
---|---|---|
committer | Max Reitz | 2019-09-16 14:48:30 +0200 |
commit | 1bbbf32d5fffe334531c315d7bd865fdfb67b6c5 (patch) | |
tree | e8f70cc6cd882948f07a8dd568b625ab7bac2e3e /bsd-user/sparc64 | |
parent | Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20190913'... (diff) | |
download | qemu-1bbbf32d5fffe334531c315d7bd865fdfb67b6c5.tar.gz qemu-1bbbf32d5fffe334531c315d7bd865fdfb67b6c5.tar.xz qemu-1bbbf32d5fffe334531c315d7bd865fdfb67b6c5.zip |
block: Use QEMU_IS_ALIGNED
Replace instances of:
(n & (BDRV_SECTOR_SIZE - 1)) == 0
And:
(n & ~BDRV_SECTOR_MASK) == 0
With:
QEMU_IS_ALIGNED(n, BDRV_SECTOR_SIZE)
Which reveals the intent of the code better, and makes it easier to
locate the code checking alignment.
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
Message-id: 20190827185913.27427-2-nsoffer@redhat.com
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'bsd-user/sparc64')
0 files changed, 0 insertions, 0 deletions