Commit cb2a3293 authored by Sakari Ailus's avatar Sakari Ailus
Browse files

v4l: fwnode: Drop redunant -ENODATA check in property reference parsing



The check of -ENODATA return value from
fwnode_property_get_reference_args() was made redundant by commit
c343bc2c ("ACPI: properties: Align return codes of
__acpi_node_get_property_reference()"). -ENOENT remains to be used to
signal there are no further entries.

Remove the check for -ENODATA.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent 3056a8e9
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -903,11 +903,7 @@ static int v4l2_fwnode_reference_parse(struct device *dev,
	if (!index)
	if (!index)
		return -ENOENT;
		return -ENOENT;


	/*
	if (ret != -ENOENT)
	 * Note that right now both -ENODATA and -ENOENT may signal
	 * out-of-bounds access. Return the error in cases other than that.
	 */
	if (ret != -ENOENT && ret != -ENODATA)
		return ret;
		return ret;


	for (index = 0;
	for (index = 0;