char: use common function to disable callbacks on chardev close
authorAmit Shah <amit.shah@redhat.com>
Wed, 28 Aug 2013 09:53:37 +0000 (15:23 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 5 Sep 2013 13:00:31 +0000 (18:30 +0530)
commit26da70c72524eb22c946ab19ec98a217b8252f7e
treed7a30f5d87ad0eaf815520c8219de5c54d04b9fb
parent7ba9addc165b37b764baa08c02518b15b2361707
char: use common function to disable callbacks on chardev close

This deduplicates code used a lot of times.

CC: <qemu-stable@nongnu.org>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
qemu-char.c