diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2019-08-27 11:00:13 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-29 10:23:02 -0300 |
commit | 90499a230d16e48282fc78591fd33461d8741fb6 (patch) | |
tree | 2dcc0122b896b80e61afb8364a09b5da156733fc /drivers/media | |
parent | 0fb68ce02ae73626a61b8d03eab1625021057af5 (diff) | |
download | linux-90499a230d16e48282fc78591fd33461d8741fb6.tar.gz linux-90499a230d16e48282fc78591fd33461d8741fb6.tar.bz2 linux-90499a230d16e48282fc78591fd33461d8741fb6.zip |
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/stm32/stm32-dcmi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index cb1daf8217ff..9392e3409fba 100644 --- a/drivers/media/platform/stm32/stm32-dcmi.c +++ b/drivers/media/platform/stm32/stm32-dcmi.c @@ -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; } |