Received: from eggs.gnu.org ([208.118.235.92]:56070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfxuL-0005oo-TM for qemu-devel@nongnu.org; Tue, 04 Dec 2012 14:12:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfxuH-0000d9-Oo for qemu-devel@nongnu.org; Tue, 04 Dec 2012 14:11:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:10072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfxuH-0000cx-FN for qemu-devel@nongnu.org; Tue, 04 Dec 2012 14:11:49 -0500 Date: Tue, 4 Dec 2012 17:13:22 -0200 From: Eduardo Habkost Message-ID: <20121204191322.GN4255@otherpad.lan.raisama.net> References: <1354627180-25704-1-git-send-email-ehabkost@redhat.com> <1354627180-25704-7-git-send-email-ehabkost@redhat.com> <20121204190129.GC4986@otherpad.lan.raisama.net> <50BE4987.4000500@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50BE4987.4000500@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 6/8] qdev-properties.c: separate core from the code used only by qemu-system-* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Blue Swirl , Igor Mammedov , qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini On Tue, Dec 04, 2012 at 08:05:43PM +0100, Andreas F=E4rber wrote: > Am 04.12.2012 20:01, schrieb Eduardo Habkost: > > On Tue, Dec 04, 2012 at 06:55:17PM +0000, Blue Swirl wrote: > >> On Tue, Dec 4, 2012 at 1:19 PM, Eduardo Habkost wrote: > >>> +static int parse_drive(DeviceState *dev, const char *str, void **p= tr) > >>> +{ > >>> + BlockDriverState *bs; > >>> + > >>> + bs =3D bdrv_find(str); > >>> + if (bs =3D=3D NULL) > >> > >> Please add braces, use checkpatch.pl. > >> > >>> + return -ENOENT; > >>> + if (bdrv_attach_dev(bs, dev) < 0) > >> > >> Also here. > >=20 > >=20 > > This is pure code movement, and I won't introduce changes in the code > > while it is being moved to not make patch review harder. >=20 > > If you want to send coding style patches for that code after it is > > moved, be my guest. >=20 > No. Patches are required to pass checkpatch.pl (i.e., + lines in the > patch need braces). That means if not in the same patch for movement > reasons, Coding Style cleanups need to be done in advance, not as > followup. (same issue as in his AREG0 series) I had the feeling that the amount of cleanup (included but not limited to coding style changes) I was doing before introducing actual code changes was making some of my series harder to review. If making coding style changes first is preferred, I can do it. I will try to send v10 of this series today. >=20 > Andreas >=20 > P.S. Dropping unrelated parts of the quotes makes requested changes > easier to spot. There was a ditto hidden somewhere down. ;) ACK. :) --=20 Eduardo