Skip to content

Commit 59f3397

Browse files
wei-w-wangmstsirkin
authored andcommitted
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: Wei Wang <wei.w.wang@intel.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com>
1 parent 53e946c commit 59f3397

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/virtio/virtio_balloon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,6 @@ static int virtballoon_probe(struct virtio_device *vdev)
925925
VIRTIO_BALLOON_CMD_ID_STOP);
926926
vb->cmd_id_stop = cpu_to_virtio32(vb->vdev,
927927
VIRTIO_BALLOON_CMD_ID_STOP);
928-
vb->num_free_page_blocks = 0;
929928
spin_lock_init(&vb->free_page_list_lock);
930929
INIT_LIST_HEAD(&vb->free_page_list);
931930
if (virtio_has_feature(vdev, VIRTIO_BALLOON_F_PAGE_POISON)) {

0 commit comments

Comments
 (0)