mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
virtio: balloon: drop restore_common()
restore_common() was used when there were different thaw and freeze PM
callbacks implemented. We removed thaw in commit
f38f8387cb
.
restore_common() can be removed and virtballoon_restore() can itself do
the restore ops.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
991ad9ec39
commit
c45b4166d9
1 changed files with 1 additions and 6 deletions
|
@ -419,7 +419,7 @@ static int virtballoon_freeze(struct virtio_device *vdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int restore_common(struct virtio_device *vdev)
|
static int virtballoon_restore(struct virtio_device *vdev)
|
||||||
{
|
{
|
||||||
struct virtio_balloon *vb = vdev->priv;
|
struct virtio_balloon *vb = vdev->priv;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -432,11 +432,6 @@ static int restore_common(struct virtio_device *vdev)
|
||||||
update_balloon_size(vb);
|
update_balloon_size(vb);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int virtballoon_restore(struct virtio_device *vdev)
|
|
||||||
{
|
|
||||||
return restore_common(vdev);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static unsigned int features[] = {
|
static unsigned int features[] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue