1
0
Fork 0

media: stm32-dcmi: Delete an unnecessary of_node_put() call in dcmi_probe()

A null pointer would be passed to a call of the function “of_node_put”
immediately after a call of the function “of_graph_get_next_endpoint”
failed at one place.
Remove this superfluous function call.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
alistair/sunxi64-5.4-dsi
Markus Elfring 2019-08-27 11:00:13 -03:00 committed by Mauro Carvalho Chehab
parent 0fb68ce02a
commit 90499a230d
1 changed files with 0 additions and 1 deletions

View File

@ -1861,7 +1861,6 @@ static int dcmi_probe(struct platform_device *pdev)
np = of_graph_get_next_endpoint(np, NULL);
if (!np) {
dev_err(&pdev->dev, "Could not find the endpoint\n");
of_node_put(np);
return -ENODEV;
}