diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-06-15 17:37:31 -0300 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-16 15:18:37 -0500 |
commit | 759754f01ff64d5b85d7e7357b9e77e8617a8e41 (patch) | |
tree | 91ce359f1b06a03ac4473523c9243ca754efaa64 | |
parent | 9923e05e1adbba54b1a646ae39f8aa8fc88d78a6 (diff) |
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>
-rw-r--r-- | readline.c | 3 |
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; |