[PATCH] cpufreq: mediatek: Use dev_err_probe in every error path in probe

Viresh Kumar viresh.kumar at linaro.org
Wed Jul 3 20:09:58 PDT 2024


On 03-07-24, 14:43, AngeloGioacchino Del Regno wrote:
> Yes it will, but `ret = dev_err_probe(dev, -ENOMEM, "...")` is still kind of a
> shortcut, as that will effectively assign -ENOMEM to ret, so that the error is
> still returned like before ;-)

Ahh, my bad. I missed that you are assigning `ret` again.

-- 
viresh



More information about the linux-arm-kernel mailing list