Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c45b4166 authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: balloon: drop restore_common()



restore_common() was used when there were different thaw and freeze PM
callbacks implemented.  We removed thaw in commit
f38f8387.

restore_common() can be removed and virtballoon_restore() can itself do
the restore ops.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 991ad9ec
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ static int virtballoon_freeze(struct virtio_device *vdev)
	return 0;
}

static int restore_common(struct virtio_device *vdev)
static int virtballoon_restore(struct virtio_device *vdev)
{
	struct virtio_balloon *vb = vdev->priv;
	int ret;
@@ -432,11 +432,6 @@ static int restore_common(struct virtio_device *vdev)
	update_balloon_size(vb);
	return 0;
}

static int virtballoon_restore(struct virtio_device *vdev)
{
	return restore_common(vdev);
}
#endif

static unsigned int features[] = {