From 0af1e5a77ca84d68387dda92f2c762f0befffaf5 Mon Sep 17 00:00:00 2001 From: Asias He Date: Tue, 5 Jun 2012 22:42:41 +0800 Subject: [PATCH] kvm tools: Code cleanup for virtio/console.c Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- virtio/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virtio/console.c b/virtio/console.c index 173c312..42472eb 100644 --- a/virtio/console.c +++ b/virtio/console.c @@ -138,9 +138,9 @@ static int init_vq(struct kvm *kvm, void *dev, u32 vq, u32 pfn) compat__remove_message(compat_id); - queue = &cdev.vqs[vq]; - queue->pfn = pfn; - p = guest_pfn_to_host(kvm, queue->pfn); + queue = &cdev.vqs[vq]; + queue->pfn = pfn; + p = guest_pfn_to_host(kvm, queue->pfn); vring_init(&queue->vring, VIRTIO_CONSOLE_QUEUE_SIZE, p, VIRTIO_PCI_VRING_ALIGN);