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>
This commit is contained in:
		
							parent
							
								
									1b7bdbc13c
								
							
						
					
					
						commit
						3cc128bb1e
					
				@ -494,7 +494,6 @@ VirtIODevice *virtio_blk_init(DeviceState *dev, BlockConf *conf)
 | 
				
			|||||||
    s->rq = NULL;
 | 
					    s->rq = NULL;
 | 
				
			||||||
    s->sector_mask = (s->conf->logical_block_size / 512) - 1;
 | 
					    s->sector_mask = (s->conf->logical_block_size / 512) - 1;
 | 
				
			||||||
    bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs);
 | 
					    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);
 | 
					    s->vq = virtio_add_queue(&s->vdev, 128, virtio_blk_handle_output);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user