qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [Qemu-devel] [PATCH 01/17] block/vmdk: Fix , instead of


From: Eric Blake
Subject: Re: [Qemu-block] [Qemu-devel] [PATCH 01/17] block/vmdk: Fix , instead of ; at end of line
Date: Wed, 29 Nov 2017 10:20:50 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 11/22/2017 08:08 PM, Max Reitz wrote:
Signed-off-by: Max Reitz <address@hidden>
---
  block/vmdk.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

No semantic difference as far as I can tell, but avoiding needless use of the comma operator is always a win in my book.

Reviewed-by: Eric Blake <address@hidden>


diff --git a/block/vmdk.c b/block/vmdk.c
index c665bcc977..1ae47b1c2e 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1398,7 +1398,7 @@ static int vmdk_write_extent(VmdkExtent *extent, int64_t 
cluster_offset,
          qemu_iovec_concat(&local_qiov, qiov, qiov_offset, n_bytes);
      }
- write_offset = cluster_offset + offset_in_cluster,
+    write_offset = cluster_offset + offset_in_cluster;
      ret = bdrv_co_pwritev(extent->file, write_offset, n_bytes,
                            &local_qiov, 0);

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

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