From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGIwG-0002ZA-BE for qemu-devel@nongnu.org; Mon, 15 Jun 2009 16:37:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGIwA-0002Y5-Qa for qemu-devel@nongnu.org; Mon, 15 Jun 2009 16:37:55 -0400 Received: from [199.232.76.173] (port=43054 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGIwA-0002Xt-IP for qemu-devel@nongnu.org; Mon, 15 Jun 2009 16:37:50 -0400 Received: from mx20.gnu.org ([199.232.41.8]:63781) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGIwA-00056L-0a for qemu-devel@nongnu.org; Mon, 15 Jun 2009 16:37:50 -0400 Received: from mx2.redhat.com ([66.187.237.31]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MGIw8-0006j5-6a for qemu-devel@nongnu.org; Mon, 15 Jun 2009 16:37:48 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5FKbkkw022062 for ; Mon, 15 Jun 2009 16:37:46 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5FKbkGS007000 for ; Mon, 15 Jun 2009 16:37:46 -0400 Received: from doriath (vpn-10-127.bos.redhat.com [10.16.10.127]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5FKbhhW012452 for ; Mon, 15 Jun 2009 16:37:44 -0400 Date: Mon, 15 Jun 2009 17:37:31 -0300 From: Luiz Capitulino Message-ID: <20090615173731.026e9fa9@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] readline: Remove unneeded qemu_mallocz() check List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel qemu_mallocz() already checks for NULL returns, readline_init() doesn't have to do it again. Signed-off-by: Luiz Capitulino --- readline.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/readline.c b/readline.c index 9c500f1..7834af0 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; -- 1.6.3.GIT