mtd: plat-ram: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Mon, 9 Sep 2013 05:42:52 +0000 (14:42 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 27 Oct 2013 23:27:07 +0000 (16:27 -0700)
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: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/plat-ram.c

index 676271659b37442a85d4d545fca05f80c48bdb54..3e35b9a330c763431674225016542f7e92568e20 100644 (file)
@@ -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