accel: Remove tcg_available() function
As the function always return 1, it is not needed anymore. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
		
							parent
							
								
									3a6ce5147f
								
							
						
					
					
						commit
						32592e112f
					
				
							
								
								
									
										1
									
								
								accel.c
								
								
								
								
							
							
						
						
									
										1
									
								
								accel.c
								
								
								
								
							| 
						 | 
				
			
			@ -119,7 +119,6 @@ static void tcg_accel_class_init(ObjectClass *oc, void *data)
 | 
			
		|||
{
 | 
			
		||||
    AccelClass *ac = ACCEL_CLASS(oc);
 | 
			
		||||
    ac->name = "tcg";
 | 
			
		||||
    ac->available = tcg_available;
 | 
			
		||||
    ac->init = tcg_init;
 | 
			
		||||
    ac->allowed = &tcg_allowed;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1337,11 +1337,6 @@ void cpudef_init(void)
 | 
			
		|||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int tcg_available(void)
 | 
			
		||||
{
 | 
			
		||||
    return 1;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int kvm_available(void)
 | 
			
		||||
{
 | 
			
		||||
#ifdef CONFIG_KVM
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -33,7 +33,6 @@ void do_smbios_option(QemuOpts *opts);
 | 
			
		|||
void ram_mig_init(void);
 | 
			
		||||
void cpudef_init(void);
 | 
			
		||||
void audio_init(void);
 | 
			
		||||
int tcg_available(void);
 | 
			
		||||
int kvm_available(void);
 | 
			
		||||
int xen_available(void);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue