瀏覽代碼

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>
Jingoo Han 12 年之前
父節點
當前提交
14ac07856f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mtd/maps/plat-ram.c

+ 1 - 1
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