mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 08:38:45 +02:00 
			
		
		
		
	ftrace: Remove unused varible 'ret'
'ret' in 2 functions are not used. and one of them is a void function. So remove them to avoid gcc warning: kernel/trace/ftrace.c:4166:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] kernel/trace/ftrace.c:5571:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Link: https://lkml.kernel.org/r/1604674486-52350-1-git-send-email-alex.shi@linux.alibaba.com Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
		
							parent
							
								
									28575c61ea
								
							
						
					
					
						commit
						045e269c1e
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		|  | @ -4162,7 +4162,6 @@ static void process_mod_list(struct list_head *head, struct ftrace_ops *ops, | |||
| 	struct ftrace_hash **orig_hash, *new_hash; | ||||
| 	LIST_HEAD(process_mods); | ||||
| 	char *func; | ||||
| 	int ret; | ||||
| 
 | ||||
| 	mutex_lock(&ops->func_hash->regex_lock); | ||||
| 
 | ||||
|  | @ -4215,7 +4214,7 @@ static void process_mod_list(struct list_head *head, struct ftrace_ops *ops, | |||
| 
 | ||||
| 	mutex_lock(&ftrace_lock); | ||||
| 
 | ||||
| 	ret = ftrace_hash_move_and_update_ops(ops, orig_hash, | ||||
| 	ftrace_hash_move_and_update_ops(ops, orig_hash, | ||||
| 					      new_hash, enable); | ||||
| 	mutex_unlock(&ftrace_lock); | ||||
| 
 | ||||
|  | @ -5567,7 +5566,6 @@ int ftrace_regex_release(struct inode *inode, struct file *file) | |||
| 	struct ftrace_hash **orig_hash; | ||||
| 	struct trace_parser *parser; | ||||
| 	int filter_hash; | ||||
| 	int ret; | ||||
| 
 | ||||
| 	if (file->f_mode & FMODE_READ) { | ||||
| 		iter = m->private; | ||||
|  | @ -5595,7 +5593,7 @@ int ftrace_regex_release(struct inode *inode, struct file *file) | |||
| 			orig_hash = &iter->ops->func_hash->notrace_hash; | ||||
| 
 | ||||
| 		mutex_lock(&ftrace_lock); | ||||
| 		ret = ftrace_hash_move_and_update_ops(iter->ops, orig_hash, | ||||
| 		ftrace_hash_move_and_update_ops(iter->ops, orig_hash, | ||||
| 						      iter->hash, filter_hash); | ||||
| 		mutex_unlock(&ftrace_lock); | ||||
| 	} else { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Alex Shi
						Alex Shi