Skip to contentSkip to conversation

Remove un-needed code

PATCH In review Bruce Rogers 2 participants 2 messages Apr 12, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove un-needed code

The bdrv_set_geometry_hint call below is not needed - it's just setting what was just read.

hw/virtio-blk.c +0 -1
index 9915840..bc4fa77 100644
@@ -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);
#1 lore raw

Am 12.04.2010 14:56, schrieb Bruce Rogers:

Quoted 3 lines

The bdrv_set_geometry_hint call below is not needed - it's just setting what was just read.

Almost. ;-) I fixed that additional space for you and applied the patch to the block branch.

Kevin

Quoted 16 lines
hw/virtio-blk.c +0 -1
index 9915840..bc4fa77 100644
@@ -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);