From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1JNf-0005hW-5J for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:08:47 -0400 Received: from [140.186.70.92] (port=52131 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1JNd-0005gg-Kr for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:08:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1JNb-0006Mg-Va for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:08:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:17159) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1JNb-0006MT-Mx for qemu-devel@nongnu.org; Mon, 12 Apr 2010 09:08:43 -0400 Message-ID: <4BC31B3D.3050704@redhat.com> Date: Mon, 12 Apr 2010 15:08:13 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] Remove un-needed code References: <4BC2C4000200004800092C4D@sinclair.provo.novell.com> In-Reply-To: <4BC2C4000200004800092C4D@sinclair.provo.novell.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bruce Rogers Cc: qemu-devel@nongnu.org Am 12.04.2010 14:56, schrieb Bruce Rogers: > The bdrv_set_geometry_hint call below is not needed - it's just setting what was just read. > > Signed-off-by: Bruce Rogers Almost. ;-) I fixed that additional space for you and applied the patch to the block branch. Kevin > > diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c > index 9915840..bc4fa77 100644 > --- a/hw/virtio-blk.c > +++ b/hw/virtio-blk.c > @@ -494,7 +494,6 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf) > s->rq = NULL; > s->sector_mask = (s->conf->logical_block_size / 512) - 1; > bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs); > - bdrv_set_geometry_hint(s->bs, cylinders, heads, secs); > > s->vq = virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output); > > > >