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

index 35e51aa10e9f8f1feacfef5ecd0eca7f564a93e1..50bef742767374d10fdfe0028d750201589464e6 100644 (file)
@@ -81,8 +81,8 @@ static void *virtio_net_rx_thread(void *p)
        u16 head;
        int len;
 
-       kvm     = ndev->kvm;
-       vq      = &ndev->vqs[VIRTIO_NET_RX_QUEUE];
+       kvm = ndev->kvm;
+       vq = &ndev->vqs[VIRTIO_NET_RX_QUEUE];
 
        while (1) {
                mutex_lock(&ndev->io_rx_lock);
@@ -117,8 +117,8 @@ static void *virtio_net_tx_thread(void *p)
        u16 head;
        int len;
 
-       kvm     = ndev->kvm;
-       vq      = &ndev->vqs[VIRTIO_NET_TX_QUEUE];
+       kvm = ndev->kvm;
+       vq = &ndev->vqs[VIRTIO_NET_TX_QUEUE];
 
        while (1) {
                mutex_lock(&ndev->io_tx_lock);