Skip to content
Snippets Groups Projects
Commit 5fb2864c authored by Andrew Halaney's avatar Andrew Halaney Committed by Viresh Kumar
Browse files

OPP: Properly propagate error along when failing to get icc_path


fa155f4f ("OPP: Use dev_err_probe() when failing to get icc_path")
failed to actually use the error it was trying to log:

    smatch warnings:
    drivers/opp/of.c:516 dev_pm_opp_of_find_icc_paths() warn: passing zero to 'dev_err_probe'

Make sure to use the right error and pass it along.

Fixes: fa155f4f ("OPP: Use dev_err_probe() when failing to get icc_path")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202306262008.guNLgjt6-lkp@intel.com/


Signed-off-by: default avatarAndrew Halaney <ahalaney@redhat.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent fa155f4f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment