Received: from eggs.gnu.org ([2001:4830:134:3::10]:42823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVhiv-0002Ls-Hj for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:35:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVhis-00017Y-CY for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:35:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVhis-00017I-4l for qemu-devel@nongnu.org; Wed, 11 Mar 2015 10:34:58 -0400 Date: Wed, 11 Mar 2015 15:34:43 +0100 From: Igor Mammedov Message-ID: <20150311153443.1c0f2c86@nial.brq.redhat.com> In-Reply-To: <20150311134941.GI3513@thinpad.lan.raisama.net> References: <1426024655-17561-1-git-send-email-ehabkost@redhat.com> <1426024655-17561-2-git-send-email-ehabkost@redhat.com> <20150311143608.5bfaecf9@nial.brq.redhat.com> <20150311134941.GI3513@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/1] target-i386: Remove icc_bridge parameter from cpu_x86_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: zhugh.fnst@cn.fujitsu.com, "Michael S. Tsirkin" , qemu-devel@nongnu.org, tangchen@cn.fujitsu.com, Gu Zheng , isimatu.yasuaki@jp.fujitsu.com, Paolo Bonzini , chen.fan.fnst@cn.fujitsu.com, anshul.makkar@profitbricks.com, Andreas =?UTF-8?B?RsOkcmJlcg==?= On Wed, 11 Mar 2015 10:49:41 -0300 Eduardo Habkost wrote: > On Wed, Mar 11, 2015 at 02:36:08PM +0100, Igor Mammedov wrote: > [...] > > > - cpu = cpu_x86_create(cpu_model, icc_bridge, &local_err); > > > + if (icc_bridge == NULL) { > > turn it into assert(icc_bridge != NULL) > > that should never be NULL or we have a codding error somewhere in code. > > See changelog and the v1 discussion: Ok, I see Since it's just code movement it's fine as well. We could do assert and object_unref changes on top so it would be easier to review. > > > Changes v1 -> v2: > > > * Keep existing check for NULL icc_bridge and error reporting, instead > > > of assing assert(icc_bridge) > > (I just noticed the typo, and it was _not_ intentional :) >