]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: i2c: tda1997x: Call of_node_put(ep) only once in tda1997x_parse_dt()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 3 Oct 2024 19:38:45 +0000 (21:38 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 6 Mar 2025 16:28:28 +0000 (17:28 +0100)
commitb50231ff015ee223732a4783eda954609369076c
tree9a8b8f183576dd05081e0185d939a13c0924821d
parent223fc68d317776d9f9620d0a934efe128bf30790
media: i2c: tda1997x: Call of_node_put(ep) only once in tda1997x_parse_dt()

An of_node_put(ep) call was immediately used after a return value check
for a v4l2_fwnode_endpoint_parse() call in this function implementation.
Thus call such a function only once instead directly before the check.

This issue was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/tda1997x.c