mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	media: lib/test_printf.c: Use helper function to unwind array of software_nodes
Use the software_node_unregister_nodes() helper function to unwind this array in a cleaner way. Acked-by: Petr Mladek <pmladek@suse.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Daniel Scally <djrscally@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
		
							parent
							
								
									000c08fda6
								
							
						
					
					
						commit
						f0328be575
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -644,9 +644,7 @@ static void __init fwnode_pointer(void)
 | 
				
			||||||
	test(second_name, "%pfwP", software_node_fwnode(&softnodes[1]));
 | 
						test(second_name, "%pfwP", software_node_fwnode(&softnodes[1]));
 | 
				
			||||||
	test(third_name, "%pfwP", software_node_fwnode(&softnodes[2]));
 | 
						test(third_name, "%pfwP", software_node_fwnode(&softnodes[2]));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	software_node_unregister(&softnodes[2]);
 | 
						software_node_unregister_nodes(softnodes);
 | 
				
			||||||
	software_node_unregister(&softnodes[1]);
 | 
					 | 
				
			||||||
	software_node_unregister(&softnodes[0]);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void __init
 | 
					static void __init
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue