video: au1100fb: Remove casting the return value which is a void pointer
PATCH 1/1 video: au1100fb: 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.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/video/au1100fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/au1100fb.c +1 -1
@@ -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);
Signature · 1 line
1.7.10.4
Tomi Valkeinen
AppliedQuoted 15 lines · Jingoo Han
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 <[email protected]>--- drivers/video/au1100fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/video/au1100fb.c +0
-0
drivers/video/au1100fb.c int au1100fb_drv_remove(struct platform_device *dev) · line 594
Quoted 8 lines
drivers/video/au1100fb.c +1
-1@@ -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);
Thanks, applied for 3.13.
Tomi