提交 82f72c53 编写于 作者: M Mauro Carvalho Chehab

[media] m2m-deinterlace: remove dead code

As reported by smatch:
drivers/media/platform/m2m-deinterlace.c:1063 deinterlace_probe() info: ignoring unreachable code.

There's no need to call v4l2_m2m_release() here, as the last possible
failure in this code is to allocate the m2m struct.
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 d5fbbb76
...@@ -1060,7 +1060,6 @@ static int deinterlace_probe(struct platform_device *pdev) ...@@ -1060,7 +1060,6 @@ static int deinterlace_probe(struct platform_device *pdev)
return 0; return 0;
v4l2_m2m_release(pcdev->m2m_dev);
err_m2m: err_m2m:
video_unregister_device(&pcdev->vfd); video_unregister_device(&pcdev->vfd);
err_ctx: err_ctx:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册