media: lib/test_printf.c: Use helper function to unwind array of software_nodes
authorDaniel Scally <djrscally@gmail.com>
Thu, 7 Jan 2021 13:28:32 +0000 (14:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 26 Jan 2021 18:28:32 +0000 (19:28 +0100)
commitf0328be57568c7954061284a533c98f91bd9938f
treef6e32a86352ee2ca6f317d5370b17c4625221473
parent000c08fda62cbb5fcee9d2c60b5ecff3ef4c2267
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>
lib/test_printf.c