Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1JBR-0007Tm-KH for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:56:09 -0400 Received: from [140.186.70.92] (port=44666 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1JBQ-0007TJ-BG for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:56:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1JBO-0004Dw-HS for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:56:08 -0400 Received: from sinclair.provo.novell.com ([137.65.248.137]:31612) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1JBO-0004DM-7m for qemu-devel@nongnu.org; Mon, 12 Apr 2010 08:56:06 -0400 Message-Id: <4BC2C4000200004800092C4D@sinclair.provo.novell.com> Date: Mon, 12 Apr 2010 06:56:00 -0600 From: "Bruce Rogers" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [Qemu-devel] [PATCH] Remove un-needed code List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The bdrv_set_geometry_hint call below is not needed - it's just setting = what was just read. Signed-off-by: Bruce Rogers 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 =3D NULL; s->sector_mask =3D (s->conf->logical_block_size / 512) - 1; bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs); - bdrv_set_geometry_hint(s->bs, cylinders, heads, secs); =20 s->vq =3D virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output);