From: Jingoo Han Date: Mon, 9 Sep 2013 05:42:52 +0000 (+0900) Subject: mtd: plat-ram: Remove casting the return value which is a void pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14ac07856fee903879f11932e313695de8156e9c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: plat-ram: 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/maps/plat-ram.c b/drivers/mtd/maps/plat-ram.c index 676271659b37..3e35b9a330c7 100644 --- a/drivers/mtd/maps/plat-ram.c +++ b/drivers/mtd/maps/plat-ram.c @@ -55,7 +55,7 @@ struct platram_info { static inline struct platram_info *to_platram_info(struct platform_device *dev) { - return (struct platram_info *)platform_get_drvdata(dev); + return platform_get_drvdata(dev); } /* platram_setrw