power: charger-manager: Remove casting the return value which is a void pointer
authorJingoo Han <jg1.han@samsung.com>
Fri, 29 Aug 2014 03:45:27 +0000 (12:45 +0900)
committerSebastian Reichel <sre@kernel.org>
Sat, 6 Sep 2014 19:07:40 +0000 (21:07 +0200)
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: Sebastian Reichel <sre@kernel.org>
drivers/power/charger-manager.c

index 4e560f7..c1ed3c9 100644 (file)
@@ -1656,7 +1656,7 @@ static inline struct charger_desc *cm_get_drv_data(struct platform_device *pdev)
 {
        if (pdev->dev.of_node)
                return of_cm_parse_desc(&pdev->dev);
-       return (struct charger_desc *)dev_get_platdata(&pdev->dev);
+       return dev_get_platdata(&pdev->dev);
 }
 
 static int charger_manager_probe(struct platform_device *pdev)