power: supply: ab8500: Remove unneeded variable
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Fri, 7 Jan 2022 02:26:02 +0000 (02:26 +0000)
committerSebastian Reichel <sre@kernel.org>
Sun, 13 Feb 2022 21:21:42 +0000 (22:21 +0100)
Remove unneeded variable used to store return value.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c

index e60db2f869a7c9df9940a5d1eaeb7f33f3b7641b..0227e800c58d414a14348e6527f2827490dc95b2 100644 (file)
@@ -3208,7 +3208,6 @@ static int ab8500_fg_probe(struct platform_device *pdev)
 
 static int ab8500_fg_remove(struct platform_device *pdev)
 {
-       int ret = 0;
        struct ab8500_fg *di = platform_get_drvdata(pdev);
 
        component_del(&pdev->dev, &ab8500_fg_component_ops);
@@ -3216,7 +3215,7 @@ static int ab8500_fg_remove(struct platform_device *pdev)
        ab8500_fg_sysfs_exit(di);
        ab8500_fg_sysfs_psy_remove_attrs(di);
 
-       return ret;
+       return 0;
 }
 
 static SIMPLE_DEV_PM_OPS(ab8500_fg_pm_ops, ab8500_fg_suspend, ab8500_fg_resume);