mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-03 18:20:25 +02:00 
			
		
		
		
	pstore/ram: remove unnecessary ramoops_unregister_dummy()
Remove unnecessary ramoops_unregister_dummy() if ramoops platform device register failed. Signed-off-by: chenqiwu <chenqiwu@xiaomi.com> Link: https://lore.kernel.org/r/1581068800-13817-2-git-send-email-qiwuchen55@gmail.com Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
		
							parent
							
								
									8a57d6d4dd
								
							
						
					
					
						commit
						e030b80ff4
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -963,7 +963,6 @@ static void __init ramoops_register_dummy(void)
 | 
			
		|||
		pr_info("could not create platform device: %ld\n",
 | 
			
		||||
			PTR_ERR(dummy));
 | 
			
		||||
		dummy = NULL;
 | 
			
		||||
		ramoops_unregister_dummy();
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue