diff options
author | Changcheng Deng <deng.changcheng@zte.com.cn> | 2022-01-07 02:26:02 +0000 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2022-02-13 22:21:42 +0100 |
commit | cd4c7b2725ccb776e931ceaeaa6333580c10f263 (patch) | |
tree | 60a81de847597bc410e302cfbba8dee0c5d4d4be /drivers/power | |
parent | 513e3b53c1d535631ad206105ecb278ca56a5ce9 (diff) | |
download | linux-cd4c7b2725ccb776e931ceaeaa6333580c10f263.tar.bz2 |
power: supply: ab8500: Remove unneeded variable
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/ab8500_fg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index e60db2f869a7..0227e800c58d 100644 --- a/drivers/power/supply/ab8500_fg.c +++ b/drivers/power/supply/ab8500_fg.c @@ -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); |