Re: [Qemu-devel] [PATCH v2 4/6] qapi: Make more of qobject_to()

2018-01-31 Thread Alberto Garcia
On Sat 20 Jan 2018 04:44:10 PM CET, Max Reitz wrote: > This patch reworks some places which use either qobject_type() checks > plus qobject_to(), where the latter alone is sufficient, or NULL checks > plus qobject_type() checks where we can simply do a qobject_to() != NULL > check. > > Signed-off-b

[Qemu-devel] [PATCH v2 4/6] qapi: Make more of qobject_to()

2018-01-20 Thread Max Reitz
This patch reworks some places which use either qobject_type() checks plus qobject_to(), where the latter alone is sufficient, or NULL checks plus qobject_type() checks where we can simply do a qobject_to() != NULL check. Signed-off-by: Max Reitz --- qapi/qobject-input-visitor.c | 4 ++-- qobje