Received: from eggs.gnu.org ([2001:4830:134:3::10]:58919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVh1H-0006Ys-PU for qemu-devel@nongnu.org; Wed, 11 Mar 2015 09:49:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YVh1G-0007wd-RY for qemu-devel@nongnu.org; Wed, 11 Mar 2015 09:49:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YVh1G-0007wL-KN for qemu-devel@nongnu.org; Wed, 11 Mar 2015 09:49:54 -0400 Date: Wed, 11 Mar 2015 10:49:41 -0300 From: Eduardo Habkost Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150311143608.5bfaecf9@nial.brq.redhat.com> 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: Igor Mammedov Cc: zhugh.fnst@cn.fujitsu.com, "Michael S. Tsirkin" , qemu-devel@nongnu.org, tangchen@cn.fujitsu.com, chen.fan.fnst@cn.fujitsu.com, isimatu.yasuaki@jp.fujitsu.com, anshul.makkar@profitbricks.com, Gu Zheng , Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= 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: > > 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 :) -- Eduardo