commit | 14943891857da24abe5bba4fa132986eb7842713 | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Fri Oct 08 15:46:52 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Nov 18 14:04:22 2021 +0100 |
tree | f744600149b083cdaa86bbe67b0bb70565b225a3 | |
parent | bea3213f191a36e34e652c0d964fc3977886a408 [diff] |
opp: Fix return in _opp_add_static_v2() [ Upstream commit 27ff8187f13ecfec8a26fb1928e906f46f326cc5 ] Fix sparse warning: drivers/opp/of.c:924 _opp_add_static_v2() warn: passing zero to 'ERR_PTR' For duplicate OPPs 'ret' be set to zero. Fixes: deac8703da5f ("PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>