qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V9 4/8] qcow2: return int for qcow2_free_cluster


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH V9 4/8] qcow2: return int for qcow2_free_clusters()
Date: Sun, 12 Jan 2014 00:59:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

On 05.01.2014 20:43, Wenchao Xia wrote:
The return value can help caller check whether error happens,
and it does not need to have *errp since the return value already tips
what happend.

Signed-off-by: Wenchao Xia <address@hidden>
---
  block/qcow2-refcount.c |    8 +++++---
  block/qcow2.h          |    6 +++---
  2 files changed, 8 insertions(+), 6 deletions(-)

I'm not sure if we actually need this since it's never really bad to have an error occur in qcow2_free_clusters(); at least, there's nothing the caller can do about that and it never blocks any subsequent operation, so most callers just don't care. But it won't hurt, either, so:

Reviewed-by: Max Reitz <address@hidden>



reply via email to

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