qmp: Drop superfluous special case "empty" in qmp_memchar_read()

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Markus Armbruster 2013-02-06 21:27:19 +01:00 committed by Anthony Liguori
parent 13289fb5a7
commit c287e99fe4
1 changed files with 0 additions and 4 deletions

View File

@ -2818,10 +2818,6 @@ char *qmp_memchar_read(const char *device, int64_t size,
}
count = qemu_chr_cirmem_count(chr);
if (count == 0) {
return g_strdup("");
}
size = size > count ? count : size;
read_data = g_malloc0(size + 1);