forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
2abb0d5268
commit
1f125dee4f
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user