From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxtts-00010b-S1 for qemu-devel@nongnu.org; Mon, 08 Dec 2014 03:42:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xxttm-0008MK-Ms for qemu-devel@nongnu.org; Mon, 08 Dec 2014 03:42:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xxttm-0008M4-FU for qemu-devel@nongnu.org; Mon, 08 Dec 2014 03:42:30 -0500 Message-ID: <5485646B.6080406@redhat.com> Date: Mon, 08 Dec 2014 09:42:19 +0100 From: Max Reitz MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/4] block: vhdx - remove redundant comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody , qemu-devel@nongnu.org Cc: kwolf@redhat.com, amulya.lokesha@emc.com, stefanha@redhat.com On 2014-12-08 at 07:07, Jeff Cody wrote: > Minor cleanup. > > Signed-off-by: Jeff Cody > --- > 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 > - 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) {