1
0
Fork 0

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>
alistair/sunxi64-5.5-dsi
Marek Szyprowski 2019-10-01 14:46:41 +02:00 committed by Chanwoo Choi
parent 2abb0d5268
commit 1f125dee4f
1 changed files with 0 additions and 1 deletions

View 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]);