Skip to content

Commit

Permalink
vhost: coding style fix
Browse files Browse the repository at this point in the history
Drop a trailing whitespace. Make line shorter.

Fixes: 7652511 ("vhost: Only align sections for vhost-user")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
  • Loading branch information
mstsirkin committed Jan 23, 2020
1 parent aefcaf9 commit 8347505
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hw/virtio/vhost.c
Expand Up @@ -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);
Expand All @@ -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) {
Expand Down

0 comments on commit 8347505

Please sign in to comment.