mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue