linux/drivers/cdx
Dan Carpenter 87736ae12e cdx: call of_node_put() on error path
Add a missing call to of_node_put(np) on error.

There was a second error path where "np" was NULL, but that situation is
impossible.  The for_each_compatible_node() loop iterator is always
non-NULL.  Just deleted that error path.

Fixes: 54b406e10f ("cdx: Remove cdx controller list from cdx bus system")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://lore.kernel.org/r/2e66efc4-a13a-4774-8c9d-763455fe4834@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-01-04 17:01:14 +01:00
..
controller Char/Misc and other driver changes for 6.7-rc1 2023-11-03 14:51:08 -10:00
cdx.c cdx: call of_node_put() on error path 2024-01-04 17:01:14 +01:00
cdx.h cdx: add sysfs for subsystem, class and revision 2023-10-27 13:23:24 +02:00
Kconfig
Makefile cdx: Create symbol namespaces for cdx subsystem 2023-10-27 13:23:24 +02:00