diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2019-10-01 15:46:41 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2019-11-06 06:04:00 +0300 |
commit | 1f125dee4feda21bca39ed7f1165198d96fca233 (patch) | |
tree | 5ce02f2b4b2bf69e20e1eac119d9a1024d597fb0 /drivers/devfreq/event | |
parent | 2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4 (diff) | |
download | linux-1f125dee4feda21bca39ed7f1165198d96fca233.tar.xz |
PM / devfreq: exynos-ppmu: remove useless assignment
The error code is propagated to the caller, so there is no need to keep
it additionally in the unused variable.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/devfreq/event')
-rw-r--r-- | drivers/devfreq/event/exynos-ppmu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index 87b42055e6bc..85c7a77bf3f0 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -673,7 +673,6 @@ static int exynos_ppmu_probe(struct platform_device *pdev) for (i = 0; i < info->num_events; i++) { edev[i] = devm_devfreq_event_add_edev(&pdev->dev, &desc[i]); if (IS_ERR(edev[i])) { - ret = PTR_ERR(edev[i]); dev_err(&pdev->dev, "failed to add devfreq-event device\n"); return PTR_ERR(edev[i]); |