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)
commit5f1501fd47882b1cf86ca232dd5d090cd9010ba2
tree6f1beb864cd7ce995039b7f5203b275938d922b9
parentcb2a3293ca7a4e24fba3804a706d79aa598b940e
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