OSDN Git Service

blockdev: Eliminate silly QERR_BLOCK_JOB_NOT_ACTIVE macro
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Jan 2015 09:36:59 +0000 (10:36 +0100)
committerMax Reitz <mreitz@redhat.com>
Fri, 6 Feb 2015 16:46:32 +0000 (11:46 -0500)
commit2e3a0266bd84a9be9f5e23c1568db6eb7f3e9e94
tree28930c8e1e9f8ebfa9f8987ef62c0ca4bb027b42
parent24d6bffe8ab523b1dcd8b8a2be678775f3e26b1c
blockdev: Eliminate silly QERR_BLOCK_JOB_NOT_ACTIVE macro

The QERR_ macros are leftovers from the days of "rich" error objects.
They're used with error_set() and qerror_report(), and expand into the
first *two* arguments.  This trickiness has become pointless.  Clean
this one up.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1422524221-8566-3-git-send-email-armbru@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
blockdev.c
include/qapi/qmp/qerror.h