'ret' is known to be 0 here.
The last error code is stored in 'nr_opp', so use it in the error message.
Fixes: 71a37cd6a59d ("scmi-cpufreq: Remove deferred probe")
Signed-off-by: Christophe JAILLET <redacted>
---
drivers/cpufreq/scmi-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -174,7 +174,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)nr_opp=dev_pm_opp_get_opp_count(cpu_dev);if(nr_opp<=0){dev_err(cpu_dev,"%s: No OPPs for this device: %d\n",-__func__,ret);+__func__,nr_opp);ret=-ENODEV;gotoout_free_opp;
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
'ret' is known to be 0 here.
The last error code is stored in 'nr_opp', so use it in the error message.
Fixes: 71a37cd6a59d ("scmi-cpufreq: Remove deferred probe")
Signed-off-by: Christophe JAILLET <redacted>
---
drivers/cpufreq/scmi-cpufreq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -174,7 +174,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)nr_opp=dev_pm_opp_get_opp_count(cpu_dev);if(nr_opp<=0){dev_err(cpu_dev,"%s: No OPPs for this device: %d\n",-__func__,ret);+__func__,nr_opp);ret=-ENODEV;gotoout_free_opp;