提交 c45b4166 编写于 作者: A Amit Shah 提交者: Rusty Russell

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: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 991ad9ec
......@@ -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[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册