From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2PwL-0004Ir-Kc for qemu-devel@nongnu.org; Tue, 28 Feb 2012 11:30:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2PwF-0003fQ-Da for qemu-devel@nongnu.org; Tue, 28 Feb 2012 11:30:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2PwF-0003dd-69 for qemu-devel@nongnu.org; Tue, 28 Feb 2012 11:30:07 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1SGU5g2022677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 Feb 2012 11:30:05 -0500 From: Gerd Hoffmann Date: Tue, 28 Feb 2012 17:29:53 +0100 Message-Id: <1330446602-10743-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1330446602-10743-1-git-send-email-kraxel@redhat.com> References: <1330446602-10743-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 02/11] sdl: remove NULL check, g_malloc0 can't fail List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alon Levy , Gerd Hoffmann From: Alon Levy Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index 6f8091c..f6f711c 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -167,10 +167,6 @@ static PixelFormat sdl_to_qemu_pixelformat(SDL_PixelFormat *sdl_pf) static DisplaySurface* sdl_create_displaysurface(int width, int height) { DisplaySurface *surface = (DisplaySurface*) g_malloc0(sizeof(DisplaySurface)); - if (surface == NULL) { - fprintf(stderr, "sdl_create_displaysurface: malloc failed\n"); - exit(1); - } surface->width = width; surface->height = height; -- 1.7.1