summaryrefslogtreecommitdiff
path: root/readline.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-06-15 17:37:31 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:18:37 -0500
commit759754f01ff64d5b85d7e7357b9e77e8617a8e41 (patch)
tree91ce359f1b06a03ac4473523c9243ca754efaa64 /readline.c
parent9923e05e1adbba54b1a646ae39f8aa8fc88d78a6 (diff)
downloadqemu-759754f01ff64d5b85d7e7357b9e77e8617a8e41.tar.gz
qemu-759754f01ff64d5b85d7e7357b9e77e8617a8e41.tar.bz2
qemu-759754f01ff64d5b85d7e7357b9e77e8617a8e41.zip
readline: Remove unneeded qemu_mallocz() check
qemu_mallocz() already checks for NULL returns, readline_init() doesn't have to do it again. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'readline.c')
-rw-r--r--readline.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/readline.c b/readline.c
index 9c500f1fec..7834af0f6b 100644
--- a/readline.c
+++ b/readline.c
@@ -467,9 +467,6 @@ ReadLineState *readline_init(Monitor *mon,
{
ReadLineState *rs = qemu_mallocz(sizeof(*rs));
- if (!rs)
- return NULL;
-
rs->hist_entry = -1;
rs->mon = mon;
rs->completion_finder = completion_finder;