diff options
Diffstat (limited to 'qobject/qnull.c')
-rw-r--r-- | qobject/qnull.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/qobject/qnull.c b/qobject/qnull.c index 9873e26..5f7ba4d 100644 --- a/qobject/qnull.c +++ b/qobject/qnull.c @@ -13,17 +13,7 @@ #include "qemu-common.h" #include "qapi/qmp/qobject.h" -static void qnull_destroy_obj(QObject *obj) -{ - assert(0); -} - -static const QType qnull_type = { - .code = QTYPE_QNULL, - .destroy = qnull_destroy_obj, -}; - QObject qnull_ = { - .type = &qnull_type, + .type = QTYPE_QNULL, .refcnt = 1, }; |