pcie_sriov: Ensure VF function number does not overflow
[qemu/ar7.git] / qobject / qnull.c
blob445a5db7f36f83b568e30bf619e5a2d49d7f610e
1 /*
2 * QNull
4 * Copyright (C) 2015 Red Hat, Inc.
6 * Authors:
7 * Markus Armbruster <armbru@redhat.com>
9 * This work is licensed under the terms of the GNU LGPL, version 2.1
10 * or later. See the COPYING.LIB file in the top-level directory.
13 #include "qemu/osdep.h"
14 #include "qapi/qmp/qnull.h"
15 #include "qobject-internal.h"
17 QNull qnull_ = {
18 .base = {
19 .type = QTYPE_QNULL,
20 .refcnt = 1,
24 /**
25 * qnull_is_equal(): Always return true because any two QNull objects
26 * are equal.
28 bool qnull_is_equal(const QObject *x, const QObject *y)
30 return true;
33 void qnull_unref(QNull *q)
35 qobject_unref(q);