Commit 59f3397c authored by Wei Wang's avatar Wei Wang Committed by Michael S. Tsirkin

virtio_balloon: remove the unnecessary 0-initialization

We've changed to kzalloc the vb struct, so no need to 0-initialize
this field one more time.
Signed-off-by: default avatarWei Wang <wei.w.wang@intel.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 53e946cb
...@@ -925,7 +925,6 @@ static int virtballoon_probe(struct virtio_device *vdev) ...@@ -925,7 +925,6 @@ static int virtballoon_probe(struct virtio_device *vdev)
VIRTIO_BALLOON_CMD_ID_STOP); VIRTIO_BALLOON_CMD_ID_STOP);
vb->cmd_id_stop = cpu_to_virtio32(vb->vdev, vb->cmd_id_stop = cpu_to_virtio32(vb->vdev,
VIRTIO_BALLOON_CMD_ID_STOP); VIRTIO_BALLOON_CMD_ID_STOP);
vb->num_free_page_blocks = 0;
spin_lock_init(&vb->free_page_list_lock); spin_lock_init(&vb->free_page_list_lock);
INIT_LIST_HEAD(&vb->free_page_list); INIT_LIST_HEAD(&vb->free_page_list);
if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) { if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment