ivshmem: simplify around increase_dynamic_storage()
commit1300b2733a297f9a59deb4eebbd437a5833f3f41
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 15 Sep 2015 15:21:37 +0000 (15 17:21 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 Oct 2015 16:02:48 +0000 (24 18:02 +0200)
tree5c5bd484ffd8550e380efdfc00956858947e531a
parent61ea2d8648d32b8e84da62f142dc08fa9ee5b7b9
ivshmem: simplify around increase_dynamic_storage()

Set the number of peers and array allocation in a single place. Rename
to better reflect the function content.

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