check-qjson: Simplify around compare_litqobj_to_qobj()
commit9eaaf971683c99ed197fa1b7d1a3ca9baabfb3ee
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:38:15 +0000 (17 21:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 22 Feb 2017 18:51:54 +0000 (22 19:51 +0100)
tree671e610364dcb6614fdc5f9e78b06028e5c9a19a
parenta68931ea5f87ee3cc3144348596077de87f94c93
check-qjson: Simplify around compare_litqobj_to_qobj()

Make compare_litqobj_to_qobj() cope with null, and drop non-null
assertions from callers.

compare_litqobj_to_qobj() already checks the QType matches; drop the
redundant assertions from callers.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-5-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/check-qjson.c