[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 10/12] VMDK: change get_cluster_offset return ty
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH 10/12] VMDK: change get_cluster_offset return type to success flag |
Date: |
Sat, 18 Jun 2011 18:01:33 +0100 |
On Sat, Jun 4, 2011 at 1:43 AM, Fam Zheng <address@hidden> wrote:
> + if (extent->flat) {
> + if (m_data) {
> + m_data->valid = 0;
> + }
Why copy-paste this...
> + *cluster_offset = 0;
> + return 0;
> + }
> if (m_data)
> m_data->valid = 0;
...instead of moving this above the if statement?
Stefan