mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	module: Remove redundant core argument from pa_module_unload()
pa_module_unload() takes two pointers: pa_module and pa_core. The pa_core pointer is also available via the pa_module object, so the pa_core argument is redundant [David Henningsson: Rebased to git HEAD]
This commit is contained in:
		
							parent
							
								
									cda1a5e897
								
							
						
					
					
						commit
						96b368b960
					
				
					 6 changed files with 8 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -2035,7 +2035,7 @@ static pa_hook_result_t device_connection_changed_cb(pa_bluetooth_discovery *y,
 | 
			
		|||
        return PA_HOOK_OK;
 | 
			
		||||
 | 
			
		||||
    pa_log_debug("Unloading module for device %s", d->path);
 | 
			
		||||
    pa_module_unload(u->core, u->module, true);
 | 
			
		||||
    pa_module_unload(u->module, true);
 | 
			
		||||
 | 
			
		||||
    return PA_HOOK_OK;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue