summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Rogers <brogers@novell.com>2010-04-12 06:56:00 -0600
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:21:57 +0200
commit5f4e83b697d0c2596f526845da36c86e469e8264 (patch)
treeac6e4036b9815a9ff457bf03ea1aa02adb495f61
parent7e3b84515044d692927d8b1c6abb61c5f0758116 (diff)
downloadqemu-5f4e83b697d0c2596f526845da36c86e469e8264.tar.gz
qemu-5f4e83b697d0c2596f526845da36c86e469e8264.tar.bz2
qemu-5f4e83b697d0c2596f526845da36c86e469e8264.zip
Remove un-needed code
The bdrv_set_geometry_hint call below is not needed - it's just setting what was just read. Signed-off-by: Bruce Rogers <brogers@novell.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rw-r--r--hw/virtio-blk.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c
index 01d77b8672..b05d15ecdd 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);