[media] v4l: ti-vpe: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Fri, 29 Aug 2014 03:49:43 +0000 (00:49 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 22:21:08 +0000 (19:21 -0300)
Casting the return value which is a void pointer is redundant.
The conversion from void pointer to any other pointer type is
guaranteed by the C programming language.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/ti-vpe/vpe.c

index 7c3c7469da1d61702f956729604667ac68d636bd..9a081c2911598502fb33e0d500d876a0361fcbc0 100644 (file)
@@ -2344,8 +2344,7 @@ v4l2_dev_unreg:
 
 static int vpe_remove(struct platform_device *pdev)
 {
-       struct vpe_dev *dev =
-               (struct vpe_dev *) platform_get_drvdata(pdev);
+       struct vpe_dev *dev = platform_get_drvdata(pdev);
 
        v4l2_info(&dev->v4l2_dev, "Removing " VPE_MODULE_NAME);