media: stm32-dcmi: simplify of_node_put usage
authorNicholas Mc Guire <hofrat@osadl.org>
Tue, 12 Jun 2018 17:23:16 +0000 (13:23 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 11:49:29 +0000 (07:49 -0400)
commitf11552d030e8e5a0a945b1920e31eaf48fe3fad4
tree32a3b572a9739426ca2645be528b1c46fb16aef9
parentc2ee2243ce3763fef8da097851b2c07b73e18cdb
media: stm32-dcmi: simplify of_node_put usage

This does not fix any bug - this is just a code simplification. As
np is not used after passing it to v4l2_fwnode_endpoint_parse() its
refcount can be decremented immediately and at one location.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/stm32/stm32-dcmi.c