Commit 7b9d621
committed
OPP: fix error code in dev_pm_opp_set_config()
JIRA: https://issues.redhat.com/browse/RHEL-81536
commit eb83336
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date: Mon Sep 16 17:07:26 2024 +0300
This is an error path so set the error code. Smatch complains about the
current code:
drivers/opp/core.c:2660 dev_pm_opp_set_config()
error: uninitialized symbol 'ret'.
Fixes: e37440e ("OPP: Call dev_pm_opp_set_opp() for required OPPs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/3f3660af-4ea0-4a89-b3b7-58de7b16d7a5@stanley.mountain
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mark Langsdorf <mlangsdo@redhat.com>1 parent bbf8104 commit 7b9d621
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
2669 | | - | |
| 2669 | + | |
| 2670 | + | |
2670 | 2671 | | |
| 2672 | + | |
2671 | 2673 | | |
2672 | 2674 | | |
2673 | 2675 | | |
| |||
0 commit comments