qemu-char: use consistent idiom for removing sources
commit910b63682ea72f34307b8797c4cc81a1f2a0c47f
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Apr 2013 15:32:06 +0000 (19 17:32 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Apr 2013 13:52:20 +0000 (22 08:52 -0500)
treefb7f0de4ea30c659f3248aa4781a1c0b5b29a126
parent0aa09897571c55292703b7a099d7ea79baa09950
qemu-char: use consistent idiom for removing sources

Always check that the source is active, and zero the tag afterwards.

The occurrence in pty_chr_state will trigger with the next patch, the
others are just theoretical.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1366385529-10329-2-git-send-email-pbonzini@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c