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

2014-01-12 Thread Wenchao Xia
于 2014/1/12 7:59, Max Reitz 写道: 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 xiaw...@linux.vnet.ibm.com ---

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

2014-01-11 Thread Max Reitz
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 xiaw...@linux.vnet.ibm.com --- block/qcow2-refcount.c |8 +---

[Qemu-devel] [PATCH V9 4/8] qcow2: return int for qcow2_free_clusters()

2014-01-05 Thread Wenchao Xia
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 xiaw...@linux.vnet.ibm.com --- block/qcow2-refcount.c |8 +--- block/qcow2.h |6 +++--- 2 files