diff options
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); |