mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux
				synced 2025-11-04 08:34:47 +10:00 
			
		
		
		
	[MIPS] thread_info.h: kmalloc + memset conversion to kzalloc
Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
		
							parent
							
								
									00be0f305f
								
							
						
					
					
						commit
						185bcd17a5
					
				@ -87,9 +87,8 @@ register struct thread_info *__current_thread_info __asm__("$28");
 | 
			
		||||
({								\
 | 
			
		||||
	struct thread_info *ret;				\
 | 
			
		||||
								\
 | 
			
		||||
	ret = kmalloc(THREAD_SIZE, GFP_KERNEL);			\
 | 
			
		||||
	if (ret)						\
 | 
			
		||||
		memset(ret, 0, THREAD_SIZE);			\
 | 
			
		||||
	ret = kzalloc(THREAD_SIZE, GFP_KERNEL);			\
 | 
			
		||||
								\
 | 
			
		||||
	ret;							\
 | 
			
		||||
})
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user