projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13289fb
)
qmp: Drop superfluous special case "empty" in qmp_memchar_read()
author
Markus Armbruster
<armbru@redhat.com>
Wed, 6 Feb 2013 20:27:19 +0000
(21:27 +0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 6 Feb 2013 22:35:18 +0000
(16:35 -0600)
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index 4dd01e645aee01bd8ba165d8c294558e7b9599f8..9d1c02cd1d9729563e1df35d91648f3112bf0993 100644
(file)
--- 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);