Skip to contentSkip to conversation

s5p-g2d: Remove casting the return value which is a void pointer

PATCH New Jingoo Han 1 participant 1 message Sep 9, 2013 Media (V4L/DVB)

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/5 s5p-g2d: Remove casting the return value which is a void pointer

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.

---
 drivers/media/platform/s5p-g2d/g2d.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/s5p-g2d/g2d.c +1 -1
index fd6289d..0b29483 100644
@@ -840,7 +840,7 @@ put_clk:
 
 static int g2d_remove(struct platform_device *pdev)
 {
-	struct g2d_dev *dev = (struct g2d_dev *)platform_get_drvdata(pdev);
+	struct g2d_dev *dev = platform_get_drvdata(pdev);
 
 	v4l2_info(&dev->v4l2_dev, "Removing " G2D_NAME);
 	v4l2_m2m_release(dev->m2m_dev);
Signature · 1 line
1.7.10.4