qemu-file: Use qemu_file_is_writable() on stdio_fclose()
commit532bc727c34665370ab0ba94a9536fd3a6c2c5bc
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 1 Oct 2014 20:34:35 +0000 (1 17:34 -0300)
committerJuan Quintela <quintela@trasno.org>
Tue, 14 Oct 2014 08:28:12 +0000 (14 10:28 +0200)
treefe27b84bc4226ac0bf2834ca847fb5b7485961eb
parente68dd3659628c41447f46da6657d68da83c3cf88
qemu-file: Use qemu_file_is_writable() on stdio_fclose()

Use the existing function which checks if writev_buffer() or
put_buffer() are set, instead of duplicating it.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
qemu-file.c