summaryrefslogtreecommitdiffstats
path: root/hw/openpic.c
diff options
context:
space:
mode:
authorAmit Shah2012-12-18 08:38:33 +0100
committerAmit Shah2012-12-18 09:58:50 +0100
commit91bdd1cf08f65b7a127c22d4d65ff9d16dcac870 (patch)
tree632c89c679ffebd0d13cad041bc59ab7610d7699 /hw/openpic.c
parentvirtio-serial-bus: send_control_msg() should not deal with cpkts (diff)
downloadqemu-91bdd1cf08f65b7a127c22d4d65ff9d16dcac870.tar.gz
qemu-91bdd1cf08f65b7a127c22d4d65ff9d16dcac870.tar.xz
qemu-91bdd1cf08f65b7a127c22d4d65ff9d16dcac870.zip
virtio-serial-bus: assert port is non-null in remove_port()
remove_port() is called from qdev's unplug callback, and we're certain the port will be found in our list of ports. Adding an assert() documents this. This was flagged by Coverity, fix suggested by Markus. CC: Markus Armbruster <armbru@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw/openpic.c')
0 files changed, 0 insertions, 0 deletions