From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9cSb-0006Xk-Al for qemu-devel@nongnu.org; Mon, 08 Oct 2018 16:49:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9cSV-0003VR-Qp for qemu-devel@nongnu.org; Mon, 08 Oct 2018 16:49:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39116) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g9cSS-0003UT-0N for qemu-devel@nongnu.org; Mon, 08 Oct 2018 16:48:53 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BFCF53084022 for ; Mon, 8 Oct 2018 20:48:50 +0000 (UTC) References: <20181008173125.19678-1-armbru@redhat.com> <20181008173125.19678-30-armbru@redhat.com> From: Eric Blake Message-ID: Date: Mon, 8 Oct 2018 15:48:49 -0500 MIME-Version: 1.0 In-Reply-To: <20181008173125.19678-30-armbru@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 29/31] vl: Assert drive_new() does not fail in default_drive() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , qemu-devel@nongnu.org Cc: Kevin Wolf , Max Reitz On 10/8/18 12:31 PM, Markus Armbruster wrote: > If creating (empty) default drives fails, it's a bug. Therefore, > assert() is more appropriate than exit(1). > > Cc: Kevin Wolf > Cc: Max Reitz > Signed-off-by: Markus Armbruster > --- > vl.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) The assert disappears in the next patch (replaced by an &error_fatal), but the separation of patches makes sense. Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org