diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-29 20:32:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-01 06:29:50 -0300 |
commit | 82f72c53813da40303214f4c4d65122b2c1ccc41 (patch) | |
tree | 2ba122e5e51e6c08e074700ad2525281fd1d596b /drivers/media/platform/m2m-deinterlace.c | |
parent | d5fbbb762bb51484bef3aecfddf0a31c2e708450 (diff) | |
download | talos-obmc-linux-82f72c53813da40303214f4c4d65122b2c1ccc41.tar.gz talos-obmc-linux-82f72c53813da40303214f4c4d65122b2c1ccc41.zip |
[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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/m2m-deinterlace.c')
-rw-r--r-- | drivers/media/platform/m2m-deinterlace.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c index 92d954973ccf..c07f367aa436 100644 --- a/drivers/media/platform/m2m-deinterlace.c +++ b/drivers/media/platform/m2m-deinterlace.c @@ -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: |