Received: from eggs.gnu.org ([140.186.70.92]:58931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiRO-0005oc-C1 for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:58:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RNiRN-00029S-Fq for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:58:02 -0500 Received: from oxygen.pond.sub.org ([78.46.104.156]:33729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RNiRN-00029E-6e for qemu-devel@nongnu.org; Tue, 08 Nov 2011 04:58:01 -0500 Received: from blackfin.pond.sub.org (p5B32AA7E.dip.t-dialin.net [91.50.170.126]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 8AF799FFC5 for ; Tue, 8 Nov 2011 10:58:00 +0100 (CET) From: Markus Armbruster Date: Tue, 8 Nov 2011 10:58:00 +0100 Message-Id: <1320746280-31710-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH] Clean up assertion in get_boot_devices_list() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: gleb@redhat.com g_strdup() can't fail, remove assertion. Assert its argument can't be null, because that's not obvious (add_boot_device_path() ensures it). Signed-off-by: Markus Armbruster --- vl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index 641629b..f169aac 100644 --- a/vl.c +++ b/vl.c @@ -915,8 +915,8 @@ char *get_boot_devices_list(uint32_t *size) } else if (devpath) { bootpath = devpath; } else { + assert(i->suffix); bootpath = g_strdup(i->suffix); - assert(bootpath); } if (total) { -- 1.7.6.4