From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgXbQ-0008QZ-CJ for qemu-devel@nongnu.org; Thu, 06 Dec 2012 04:18:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgXbG-0001lW-Vh for qemu-devel@nongnu.org; Thu, 06 Dec 2012 04:18:44 -0500 Received: from cantor2.suse.de ([195.135.220.15]:48200 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgXbG-0001lS-Pd for qemu-devel@nongnu.org; Thu, 06 Dec 2012 04:18:34 -0500 Message-ID: <50C062E5.4070304@suse.de> Date: Thu, 06 Dec 2012 10:18:29 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1354631742-4693-1-git-send-email-fred.konrad@greensocs.com> <1354631742-4693-7-git-send-email-fred.konrad@greensocs.com> <50C06130.1090006@greensocs.com> In-Reply-To: <50C06130.1090006@greensocs.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH v5 6/6] virtio-blk : Refactor virtio-blk. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?S09OUkFEIEZyw6lkw6lyaWM=?= Cc: Peter Maydell , aliguori@us.ibm.com, e.voevodin@samsung.com, mark.burton@greensocs.com, qemu-devel@nongnu.org, stefanha@redhat.com, cornelia.huck@de.ibm.com Am 06.12.2012 10:11, schrieb KONRAD Fr=C3=A9d=C3=A9ric: > On 05/12/2012 17:25, Peter Maydell wrote: >> On 4 December 2012 14:35, wrote: >>> -static VirtIOBlock *to_virtio_blk(VirtIODevice *vdev) >>> -{ >>> - return (VirtIOBlock *)vdev; >>> -} >>> +/* >>> + * Use the QOM cast, so we don't need that anymore. >>> + * >>> + * static VirtIOBlock *to_virtio_blk(VirtIODevice *vdev) >>> + * { >>> + * return (VirtIOBlock *)vdev; >>> + * } >>> + */ >> If we don't need it, just delete it. >> >> -- PMM > Yes, sure, I put it in comment to explain, why I deleted it. Please don't comment out unneeded things. Instead, remove them completely and put the explanation into the commit message. That helps keep the patch small and avoids commented-out code bitrotting. Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg