From: Luiz Capitulino Date: Mon, 15 Jun 2009 20:37:31 +0000 (-0300) Subject: readline: Remove unneeded qemu_mallocz() check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=759754f01ff64d5b85d7e7357b9e77e8617a8e41;p=qemu.git 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 Signed-off-by: Anthony Liguori --- 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;