diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-02-06 21:27:19 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-02-06 16:35:18 -0600 |
commit | c287e99fe47b179e6ef6b212139821b4d78934c1 (patch) | |
tree | 49755d3bb393a299128591a8e1d96fa5ac35767b /qemu-char.c | |
parent | 13289fb5a716e06fb06febb880e5e116d485f82b (diff) |
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r-- | qemu-char.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/qemu-char.c b/qemu-char.c index 4dd01e645a..9d1c02cd1d 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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); |