Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e32eb0d8 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Mauro Carvalho Chehab
Browse files

media: adv7604: simplify of_node_put()



As the of_node_put() is unconditional here there is no need to have it
twice.

Signed-off-by: default avatarNicholas Mc Guire <hofrat@opentech.at>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent 7fc77a2f
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -3108,12 +3108,9 @@ static int adv76xx_parse_dt(struct adv76xx_state *state)
		return -EINVAL;

	ret = v4l2_fwnode_endpoint_parse(of_fwnode_handle(endpoint), &bus_cfg);
	if (ret) {
	of_node_put(endpoint);
	if (ret)
		return ret;
	}

	of_node_put(endpoint);

	if (!of_property_read_u32(np, "default-input", &v))
		state->pdata.default_input = v;