numa: Clean up query-memdev error handling
commit2f6f826e03e09eb3b65b3a764580d66b857e3a23
authorMarkus Armbruster <armbru@redhat.com>
Mon, 23 Nov 2015 08:35:31 +0000 (23 09:35 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 18 Dec 2015 17:50:24 +0000 (18 15:50 -0200)
tree02d0ef0f8309cb48e72ae97f225d4ea0621310df
parentc688084506cf2cf2eba4ba9df4e91abb6e3dab83
numa: Clean up query-memdev error handling

qmp_query_memdev() has two error paths:

* When object_get_objects_root() returns null.  It never does, so
  simply drop the useless error handling.

* When query_memdev() fails.  It leaks err then.  But any failure
  there is actually a programming error.  Switch it to &error_abort,
  and drop the useless error handling.

Messed up in commit 76b5d85 "qmp: add query-memdev".

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
numa.c