Received: from eggs.gnu.org ([2001:4830:134:3::10]:36232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brnRL-0007MR-VC for qemu-devel@nongnu.org; Wed, 05 Oct 2016 10:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brnRL-0007Tm-7b for qemu-devel@nongnu.org; Wed, 05 Oct 2016 10:44:59 -0400 Date: Wed, 5 Oct 2016 11:44:51 -0300 From: Eduardo Habkost Message-ID: <20161005144451.GL3877@thinpad.lan.raisama.net> References: <20161005133530.5702-1-rkrcmar@redhat.com> <20161005133530.5702-3-rkrcmar@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161005133530.5702-3-rkrcmar@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] coccinelle: use object_new_with_class() in obvious cases List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Radim =?utf-8?B?S3LEjW3DocWZ?= Cc: qemu-devel@nongnu.org, Igor Mitsyanko , Peter Maydell , Rob Herring , "Edgar E. Iglesias" , Alistair Francis , Andreas =?iso-8859-1?Q?F=E4rber?= , Richard Henderson , Paolo Bonzini , Alexander Graf , Max Filippov , qemu-arm@nongnu.org On Wed, Oct 05, 2016 at 03:35:30PM +0200, Radim Kr=C4=8Dm=C3=A1=C5=99 wro= te: > object_new_with_class(class) does a better job than > object_new(object_class_get_name(class)), because > object_class_get_name() lost the class->type and object_new() looked it > up again from the name. >=20 > Manually changed vl.c to fit into 80 character line. >=20 > Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 Reviewed-by: Eduardo Habkost --=20 Eduardo