OSDN Git Service

qcow2: Use BDRV_SECTOR_BITS instead of its literal value
authorAlberto Garcia <berto@igalia.com>
Mon, 9 Oct 2017 15:38:56 +0000 (17:38 +0200)
committerMax Reitz <mreitz@redhat.com>
Thu, 26 Oct 2017 13:01:13 +0000 (15:01 +0200)
commita35f87f50d4bb5d7255b30e5bb9dddb6f3a6938f
tree27af33fb6a770c9e9138ee364634bd231d6adaf6
parent67e56472a503f94a3950bad85a57fb99706cf1d8
qcow2: Use BDRV_SECTOR_BITS instead of its literal value

BDRV_SECTOR_BITS is defined to be 9 in block.h (and BDRV_SECTOR_SIZE
is calculated from that), but there are still a couple of places where
we are using the literal value instead of the macro.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-id: 20171009153856.20387-1-berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/qcow2.c