From 1ea827c245811e5842156814853b07a2a93f185f Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Fri, 27 Apr 2012 00:45:55 +0530 Subject: [PATCH] virtio: balloon: drop restore_common() restore_common() was used when there were different thaw and freeze PM callbacks implemented. We removed thaw in commit c920ba22c90ad3b50e5f580904e10afe7dfaa797. restore_common() can be removed and virtballoon_restore() can itself do the restore ops. Signed-off-by: Amit Shah Signed-off-by: Rusty Russell --- drivers/virtio/virtio_balloon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index 8807fe501d20c..04baad647403f 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -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[] = { -- 2.39.5