qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH for-1.4 v2 06/13] qmp: Drop superfluous special case


From: Markus Armbruster
Subject: [Qemu-devel] [PATCH for-1.4 v2 06/13] qmp: Drop superfluous special case "empty" in qmp_memchar_read()
Date: Wed, 6 Feb 2013 21:27:19 +0100

Signed-off-by: Markus Armbruster <address@hidden>
---
 qemu-char.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/qemu-char.c b/qemu-char.c
index 4dd01e6..9d1c02c 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);
 
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]