[media] m2m-deinterlace: remove dead code
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 29 Apr 2015 23:32:48 +0000 (20:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 09:29:50 +0000 (06:29 -0300)
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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/m2m-deinterlace.c

index 92d954973ccf50be453a1bba217c893cd5452358..c07f367aa436f6bb44c7c46cf06e501a60ca1b85 100644 (file)
@@ -1060,7 +1060,6 @@ static int deinterlace_probe(struct platform_device *pdev)
 
        return 0;
 
-       v4l2_m2m_release(pcdev->m2m_dev);
 err_m2m:
        video_unregister_device(&pcdev->vfd);
 err_ctx: