mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	mm/kmemleak.c: remove unneeded initialization of object to NULL
Few lines below object is reinitialized by lookup_object() so we don't need to init it by NULL in the beginning of find_and_get_object(). Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									d4322d88f5
								
							
						
					
					
						commit
						9fbed25407
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -479,7 +479,7 @@ static void put_object(struct kmemleak_object *object) | |||
| static struct kmemleak_object *find_and_get_object(unsigned long ptr, int alias) | ||||
| { | ||||
| 	unsigned long flags; | ||||
| 	struct kmemleak_object *object = NULL; | ||||
| 	struct kmemleak_object *object; | ||||
| 
 | ||||
| 	rcu_read_lock(); | ||||
| 	read_lock_irqsave(&kmemleak_lock, flags); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Alexey Klimov
						Alexey Klimov