qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/4] block: vhdx - remove redundant comments


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH 1/4] block: vhdx - remove redundant comments
Date: Mon, 08 Dec 2014 09:42:19 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 2014-12-08 at 07:07, Jeff Cody wrote:
Minor cleanup.

Signed-off-by: Jeff Cody <address@hidden>
---
  block/vhdx.c | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/block/vhdx.c b/block/vhdx.c
index 12bfe75..f1e1e2e 100644
--- a/block/vhdx.c
+++ b/block/vhdx.c
@@ -1109,8 +1109,8 @@ static coroutine_fn int vhdx_co_readv(BlockDriverState 
*bs, int64_t sector_num,
              /* check the payload block state */
              switch (s->bat[sinfo.bat_idx] & VHDX_BAT_STATE_BIT_MASK) {
              case PAYLOAD_BLOCK_NOT_PRESENT: /* fall through */
-            case PAYLOAD_BLOCK_UNDEFINED:   /* fall through */
-            case PAYLOAD_BLOCK_UNMAPPED:    /* fall through */
+            case PAYLOAD_BLOCK_UNDEFINED:
+            case PAYLOAD_BLOCK_UNMAPPED:
              case PAYLOAD_BLOCK_ZERO:
                  /* return zero */
                  qemu_iovec_memset(&hd_qiov, 0, 0, sinfo.bytes_avail);
@@ -1280,8 +1280,8 @@ static coroutine_fn int vhdx_co_writev(BlockDriverState 
*bs, int64_t sector_num,
/* fall through */
              case PAYLOAD_BLOCK_NOT_PRESENT: /* fall through */

Still a bit of redundancy left ;-)

Reviewed-by: Max Reitz <address@hidden>

-            case PAYLOAD_BLOCK_UNMAPPED:    /* fall through */
-            case PAYLOAD_BLOCK_UNDEFINED:   /* fall through */
+            case PAYLOAD_BLOCK_UNMAPPED:
+            case PAYLOAD_BLOCK_UNDEFINED:
                  bat_prior_offset = sinfo.file_offset;
                  ret = vhdx_allocate_block(bs, s, &sinfo.file_offset);
                  if (ret < 0) {




reply via email to

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