hw/block/nvme.c: Use pow2ceil() rather than hand-calculation
commit26efcec158a87133bb6255ae7d3127a5fa6e66fd
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 24 Jul 2015 12:33:09 +0000 (24 13:33 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Sep 2015 13:19:00 +0000 (7 14:19 +0100)
tree8d058a47d6defafda7da26df8d0c02019bda327b
parent1d0148fe6c121b21476ac1ba5120f8990e7fe6cd
hw/block/nvme.c: Use pow2ceil() rather than hand-calculation

Use pow2ceil() to round up to the next power of 2, rather
than an inline calculation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1437741192-20955-4-git-send-email-peter.maydell@linaro.org
hw/block/nvme.c