Commit 14ac0785 authored by Jingoo Han's avatar Jingoo Han Committed by Brian Norris
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 963d1c28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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