diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2019-10-01 14:46:41 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2019-11-06 12:04:00 +0900 |
commit | 1f125dee4feda21bca39ed7f1165198d96fca233 (patch) | |
tree | 5ce02f2b4b2bf69e20e1eac119d9a1024d597fb0 | |
parent | 2abb0d5268ae7b5ddf82099b1f8d5aa8414637d4 (diff) | |
download | blackbird-op-linux-1f125dee4feda21bca39ed7f1165198d96fca233.tar.gz blackbird-op-linux-1f125dee4feda21bca39ed7f1165198d96fca233.zip |
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>
-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]); |