]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Code cleanup for virtio/console.c
authorAsias He <asias.hejun@gmail.com>
Tue, 5 Jun 2012 14:42:41 +0000 (22:42 +0800)
committerPekka Enberg <penberg@kernel.org>
Tue, 5 Jun 2012 20:28:07 +0000 (23:28 +0300)
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/virtio/console.c

index 173c312c950bb01b0c48798f2af794f030ba6914..42472eb0769731a64e76fbb91eb12f0fcc533855 100644 (file)
@@ -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);