projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d1beb
)
readline: Remove unneeded qemu_mallocz() check
author
Luiz Capitulino
<lcapitulino@redhat.com>
Mon, 15 Jun 2009 20:37:31 +0000
(17:37 -0300)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 16 Jun 2009 20:18:37 +0000
(15:18 -0500)
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>
readline.c
patch
|
blob
|
history
diff --git
a/readline.c
b/readline.c
index 9c500f1fec3661e3b473af3232ec0fed90e88941..7834af0f6b4c4baa9dfd54986519b05ce4e25f74 100644
(file)
--- 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;