mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	reveting modifaction to __ast_module_user_remove
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42965 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -199,17 +199,6 @@ struct ast_module_user *__ast_module_user_add(struct ast_module *mod, | ||||
|  | ||||
| void __ast_module_user_remove(struct ast_module *mod, struct ast_module_user *u) | ||||
| { | ||||
|  | ||||
| 	if (!u) { | ||||
| 		ast_log(LOG_ERROR, "ast_module_user is invalid can not remove\n");		 | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (!mod) { | ||||
| 		ast_log(LOG_ERROR, "ast_module is invalid can not remove\n"); | ||||
| 		return; | ||||
| 	} | ||||
| 	 | ||||
| 	AST_LIST_LOCK(&mod->users); | ||||
| 	AST_LIST_REMOVE(&mod->users, u, entry); | ||||
| 	AST_LIST_UNLOCK(&mod->users); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user