]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-balloon: free page hinting cleanups
authorDavid Hildenbrand <david@redhat.com>
Thu, 8 Jul 2021 09:53:39 +0000 (11:53 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 20:35:17 +0000 (16:35 -0400)
commit2d050ed07c97a88202dac3eef64263e1f2556bfe
tree996c4bc86f3f79eab5ed834efcfcd383ff45e0d5
parentfd51e54fa10221e5a8add894c38cc1cf199f4bc4
virtio-balloon: free page hinting cleanups

Let's compress the code a bit to improve readability. We can drop the
vm_running check in virtio_balloon_free_page_start() as it's already
properly checked in the single caller.

Cc: Wei Wang <wei.w.wang@intel.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>
Cc: Juan Quintela <quintela@redhat.com>
Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: Peter Xu <peterx@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210708095339.20274-3-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-balloon.c