ivshmem: use common is_power_of_2()
commite309366337d636689730f6484e388e46db7b5654
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 18 Jun 2015 14:10:33 +0000 (18 16:10 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:49 +0000 (24 18:02 +0200)
tree4fb0f025e32992a29a7324e8c586fa90bd32035d
parent6f8a16d55daac5657ccbcf953140685048e15ace
ivshmem: use common is_power_of_2()

The common version correctly checks for 0 value case.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c