yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
22c213
From 624d96c456536e1471968a59fbeea206309cc33b Mon Sep 17 00:00:00 2001
22c213
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
22c213
Date: Fri, 24 Jan 2020 19:46:13 +0100
22c213
Subject: [PATCH 004/116] vhost: coding style fix
22c213
MIME-Version: 1.0
22c213
Content-Type: text/plain; charset=UTF-8
22c213
Content-Transfer-Encoding: 8bit
22c213
22c213
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
22c213
Message-id: <20200124194613.41119-4-dgilbert@redhat.com>
22c213
Patchwork-id: 93453
22c213
O-Subject: [RHEL-AV-8.2 qemu-kvm PATCH 3/3] vhost: coding style fix
22c213
Bugzilla: 1779041
22c213
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
22c213
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
22c213
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
22c213
22c213
From: "Michael S. Tsirkin" <mst@redhat.com>
22c213
22c213
Drop a trailing whitespace. Make line shorter.
22c213
22c213
Fixes: 76525114736e8 ("vhost: Only align sections for vhost-user")
22c213
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
22c213
(cherry picked from commit 8347505640238d3b80f9bb7510fdc1bb574bad19)
22c213
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
22c213
---
22c213
 hw/virtio/vhost.c | 6 +++---
22c213
 1 file changed, 3 insertions(+), 3 deletions(-)
22c213
22c213
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
22c213
index 25fd469..9edfadc 100644
22c213
--- a/hw/virtio/vhost.c
22c213
+++ b/hw/virtio/vhost.c
22c213
@@ -551,7 +551,7 @@ static void vhost_region_add_section(struct vhost_dev *dev,
22c213
     trace_vhost_region_add_section(section->mr->name, mrs_gpa, mrs_size,
22c213
                                    mrs_host);
22c213
 
22c213
-    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {   
22c213
+    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {
22c213
         /* Round the section to it's page size */
22c213
         /* First align the start down to a page boundary */
22c213
         size_t mrs_page = qemu_ram_pagesize(mrs_rb);
22c213
@@ -566,8 +566,8 @@ static void vhost_region_add_section(struct vhost_dev *dev,
22c213
         if (alignage) {
22c213
             mrs_size += mrs_page - alignage;
22c213
         }
22c213
-        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, mrs_size,
22c213
-                                               mrs_host);
22c213
+        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa,
22c213
+                                               mrs_size, mrs_host);
22c213
     }
22c213
 
22c213
     if (dev->n_tmp_sections) {
22c213
-- 
22c213
1.8.3.1
22c213