Received: from eggs.gnu.org ([140.186.70.92]:50796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROSv2-0008F5-1F for qemu-devel@nongnu.org; Thu, 10 Nov 2011 06:35:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROSux-0003xN-ML for qemu-devel@nongnu.org; Thu, 10 Nov 2011 06:35:43 -0500 Date: Thu, 10 Nov 2011 11:35:33 +0000 From: Stefan Hajnoczi Message-ID: <20111110113533.GC12527@stefanha-thinkpad.localdomain> References: <1320867268-10015-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1320867268-10015-1-git-send-email-peter.maydell@linaro.org> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/tc58128.c: Remove unnecessary check for g_malloc failure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org, patches@linaro.org On Wed, Nov 09, 2011 at 07:34:28PM +0000, Peter Maydell wrote: > Remove a check for g_malloc failing: this never happens. > Also use g_malloc rather than g_malloc0 as we immediately > memset the entire region and so zero-initialising it is pointless. > Spotted by Coverity (see bug 887883). > > Signed-off-by: Peter Maydell > --- > hw/tc58128.c | 6 +----- > 1 files changed, 1 insertions(+), 5 deletions(-) Thanks, applied to the trivial patches tree: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches Stefan