virtio-rng: cleanup: remove qdev field.
The qdev field is no longer needed, just drop it. Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com> Acked-by: Amit Shah <amit.shah@redhat.com> Message-id: 1366790881-3026-8-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
		
							parent
							
								
									46a5a89d65
								
							
						
					
					
						commit
						65f3b678f5
					
				@ -168,8 +168,6 @@ static int virtio_rng_device_init(VirtIODevice *vdev)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    vrng->vdev.get_features = get_features;
 | 
					    vrng->vdev.get_features = get_features;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    vrng->qdev = qdev;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    assert(vrng->conf.max_bytes <= INT64_MAX);
 | 
					    assert(vrng->conf.max_bytes <= INT64_MAX);
 | 
				
			||||||
    vrng->quota_remaining = vrng->conf.max_bytes;
 | 
					    vrng->quota_remaining = vrng->conf.max_bytes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -32,8 +32,6 @@ struct VirtIORNGConf {
 | 
				
			|||||||
typedef struct VirtIORNG {
 | 
					typedef struct VirtIORNG {
 | 
				
			||||||
    VirtIODevice vdev;
 | 
					    VirtIODevice vdev;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    DeviceState *qdev;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /* Only one vq - guest puts buffer(s) on it when it needs entropy */
 | 
					    /* Only one vq - guest puts buffer(s) on it when it needs entropy */
 | 
				
			||||||
    VirtQueue *vq;
 | 
					    VirtQueue *vq;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user