Commit 1f125dee authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Chanwoo Choi
Browse files

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: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 2abb0d52
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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]);