[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 03/15] qdev_prop_parse(): extend signature wi
From: |
Luiz Capitulino |
Subject: |
Re: [Qemu-devel] [PATCH v2 03/15] qdev_prop_parse(): extend signature with Error |
Date: |
Thu, 7 Feb 2013 15:52:13 -0200 |
On Thu, 7 Feb 2013 15:04:54 -0200
Eduardo Habkost <address@hidden> wrote:
> On Tue, Feb 05, 2013 at 09:39:16PM +0100, Laszlo Ersek wrote:
> > Error handling is not changed yet.
> >
> > Signed-off-by: Laszlo Ersek <address@hidden>
>
> The extra parameter seems useless and even misleading (because Error
> info won't be set even if the function returns -1) without patch 04/15.
> What about squashing both patches together?
I suggested him to do it this way as a general rule because it makes
it easier to review when the function getting the Error ** argument is
called from several other functions. In that case, you'll usually add
different error handling to callers and having everything in one big
patch makes it just impossible to review.
This case is simple, so it doesn't matter much. Although I do think
it's easier to review this way.
- [Qemu-devel] [PATCH v2 00/15] propagate Errors to do_device_add(), Laszlo Ersek, 2013/02/05
- [Qemu-devel] [PATCH v2 03/15] qdev_prop_parse(): extend signature with Error, Laszlo Ersek, 2013/02/05
- [Qemu-devel] [PATCH v2 04/15] qdev_prop_parse(): push error handling to callers, Laszlo Ersek, 2013/02/05
- [Qemu-devel] [PATCH v2 05/15] qdev_prop_parse(): change return type to void, Laszlo Ersek, 2013/02/05
- [Qemu-devel] [PATCH v2 06/15] set_property(): extend signature with Error, Laszlo Ersek, 2013/02/05
- [Qemu-devel] [PATCH v2 07/15] set_property(): push error handling to callers, Laszlo Ersek, 2013/02/05