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 <jg1.han@samsung.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
963d1c285f
commit
14ac07856f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue