PM / devfreq: exynos-ppmu: remove useless assignment
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 1 Oct 2019 12:46:41 +0000 (14:46 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Nov 2019 03:04:00 +0000 (12:04 +0900)
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>
drivers/devfreq/event/exynos-ppmu.c

index 87b42055e6bc932013b726b9579680a3ad0067dc..85c7a77bf3f0dd01a1e489718f5dca704325952c 100644 (file)
@@ -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]);