video: au1100fb: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Mon, 9 Sep 2013 05:49:14 +0000 (14:49 +0900)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 19 Sep 2013 10:30:05 +0000 (13:30 +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: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/au1100fb.c

index a54ccdc4d6618bf4bdcfd5202f3e8489f22cec34..248abd50ca252534a9166cfa9335e0aaf8dd7917 100644 (file)
@@ -588,7 +588,7 @@ int au1100fb_drv_remove(struct platform_device *dev)
        if (!dev)
                return -ENODEV;
 
-       fbdev = (struct au1100fb_device *) platform_get_drvdata(dev);
+       fbdev = platform_get_drvdata(dev);
 
 #if !defined(CONFIG_FRAMEBUFFER_CONSOLE) && defined(CONFIG_LOGO)
        au1100fb_fb_blank(VESA_POWERDOWN, &fbdev->info);