]> git.baikalelectronics.ru Git - kernel.git/commit
v4l: fwnode: Remove now-redundant loop from v4l2_fwnode_parse_reference()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 28 Jan 2022 22:26:07 +0000 (00:26 +0200)
committerSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 3 Mar 2022 22:27:07 +0000 (00:27 +0200)
commitad8a5b6ea418c3a86ff5d1c4e4cf0b5f45944e0b
tree6f1beb864cd7ce995039b7f5203b275938d922b9
parent18e9d0a5f85c5d9547ef54911a01d77a1030a23a
v4l: fwnode: Remove now-redundant loop from v4l2_fwnode_parse_reference()

v4l2_fwnode_parse_reference() relied on counting the number of references
for async array memory allocation. The array is long gone so remove
counting the references now.

This also changes how the function arrives in different unsuccessful
return values but the functionality remains unchanged.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/v4l2-core/v4l2-fwnode.c