qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vhost: coding style fix


From: Wainer dos Santos Moschetta
Subject: Re: [PATCH] vhost: coding style fix
Date: Wed, 22 Jan 2020 11:06:53 -0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0


On 1/22/20 6:08 AM, Michael S. Tsirkin wrote:
Drop a trailing whitespace. Make line shorter.


hmmm... wondering why Patchew didn't catch that. Any idea?

- Wainer


Fixes: 76525114736e8 ("vhost: Only align sections for vhost-user")
Signed-off-by: Michael S. Tsirkin <address@hidden>
---
  hw/virtio/vhost.c | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index 25fd469179..9edfadc81d 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -551,7 +551,7 @@ static void vhost_region_add_section(struct vhost_dev *dev,
      trace_vhost_region_add_section(section->mr->name, mrs_gpa, mrs_size,
                                     mrs_host);
- if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {
+    if (dev->vhost_ops->backend_type == VHOST_BACKEND_TYPE_USER) {
          /* Round the section to it's page size */
          /* First align the start down to a page boundary */
          size_t mrs_page = qemu_ram_pagesize(mrs_rb);
@@ -566,8 +566,8 @@ static void vhost_region_add_section(struct vhost_dev *dev,
          if (alignage) {
              mrs_size += mrs_page - alignage;
          }
-        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa, 
mrs_size,
-                                               mrs_host);
+        trace_vhost_region_add_section_aligned(section->mr->name, mrs_gpa,
+                                               mrs_size, mrs_host);
      }
if (dev->n_tmp_sections) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]