]> Git Repo - qemu.git/commit - qapi/qobject-input-visitor.c
qmp-input: Clean up stack handling
authorEric Blake <[email protected]>
Thu, 28 Apr 2016 21:45:12 +0000 (15:45 -0600)
committerMarkus Armbruster <[email protected]>
Thu, 12 May 2016 07:47:54 +0000 (09:47 +0200)
commitb471d012e5d7bec1d2272738141e121b5581fcdf
tree82423db170087dc37fb6becce39c5f2fc42b9b93
parent42a502a7a60632234f0dd5028924926a7eac6c94
qmp-input: Clean up stack handling

Management of the top of stack was a bit verbose; creating a
temporary variable and adding some comments makes the existing
code more legible before the next few patches improve things.
No semantic changes other than asserting that we are always
visiting a QObject, and not a NULL value.  In particular, the
check for 'name && qobject_type(qobj) == QTYPE_QDICT)' is a
bit overkill (a dict visit should always have a name); a later
patch revisits that, while this patch is only changing one
layer of indentation due to dropping 'if (qobj)'.

Signed-off-by: Eric Blake <[email protected]>
Message-Id: <1461879932[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
qapi/qmp-input-visitor.c
This page took 0.025359 seconds and 4 git commands to generate.