vhost: refine code style
authorOuyang Changchun <changchun.ouyang@intel.com>
Tue, 9 Jun 2015 01:03:02 +0000 (09:03 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Jun 2015 14:25:10 +0000 (16:25 +0200)
Remove unnecessary new line.

Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/vhost_rxtx.c

index 33449e9..c547096 100644 (file)
@@ -265,8 +265,7 @@ copy_from_mbuf_to_vring(struct virtio_net *dev, uint16_t res_base_idx,
         * (guest physical addr -> vhost virtual addr)
         */
        vq = dev->virtqueue[VIRTIO_RXQ];
-       vb_addr =
-               gpa_to_vva(dev, vq->buf_vec[vec_idx].buf_addr);
+       vb_addr = gpa_to_vva(dev, vq->buf_vec[vec_idx].buf_addr);
        vb_hdr_addr = vb_addr;
 
        /* Prefetch buffer address. */
@@ -284,8 +283,7 @@ copy_from_mbuf_to_vring(struct virtio_net *dev, uint16_t res_base_idx,
 
        seg_avail = rte_pktmbuf_data_len(pkt);
        vb_offset = vq->vhost_hlen;
-       vb_avail =
-               vq->buf_vec[vec_idx].buf_len - vq->vhost_hlen;
+       vb_avail = vq->buf_vec[vec_idx].buf_len - vq->vhost_hlen;
 
        entry_len = vq->vhost_hlen;
 
@@ -308,8 +306,7 @@ copy_from_mbuf_to_vring(struct virtio_net *dev, uint16_t res_base_idx,
                }
 
                vec_idx++;
-               vb_addr =
-                       gpa_to_vva(dev, vq->buf_vec[vec_idx].buf_addr);
+               vb_addr = gpa_to_vva(dev, vq->buf_vec[vec_idx].buf_addr);
 
                /* Prefetch buffer address. */
                rte_prefetch0((void *)(uintptr_t)vb_addr);