From patchwork Tue Feb 10 06:34:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 438321 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DAB44140168 for ; Tue, 10 Feb 2015 21:14:40 +1100 (AEDT) Received: from localhost ([::1]:38840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL7q2-0002wB-PC for incoming@patchwork.ozlabs.org; Tue, 10 Feb 2015 05:14:38 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL7mi-0005GD-Vk for qemu-devel@nongnu.org; Tue, 10 Feb 2015 05:11:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YL7mb-0003qt-J1 for qemu-devel@nongnu.org; Tue, 10 Feb 2015 05:11:12 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:45995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YL7mb-0003qj-Ce; Tue, 10 Feb 2015 05:11:05 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 78FC4418C1; Tue, 10 Feb 2015 13:11:03 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id E4260954; Tue, 10 Feb 2015 09:34:46 +0300 (MSK) Received: (nullmailer pid 9400 invoked by uid 1000); Tue, 10 Feb 2015 06:34:43 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Tue, 10 Feb 2015 09:34:22 +0300 Message-Id: <9834fe02b00552648d498ca561b51f8ff1d7df31.1423549659.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 86.62.121.231 Cc: qemu-trivial@nongnu.org, Michael Tokarev , Markus Armbruster Subject: [Qemu-devel] [PULL 33/46] kvm: g_malloc() can't fail, bury dead error handling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Markus Armbruster Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake Reviewed-by: Gonglei Signed-off-by: Michael Tokarev --- kvm-all.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 2f21a4e..05a79c2 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -2070,10 +2070,6 @@ int kvm_insert_breakpoint(CPUState *cpu, target_ulong addr, } bp = g_malloc(sizeof(struct kvm_sw_breakpoint)); - if (!bp) { - return -ENOMEM; - } - bp->pc = addr; bp->use_count = 1; err = kvm_arch_insert_sw_breakpoint(cpu, bp);