ASoC: rockchip: asrc: Fix asrc get parent clock error

Fix the if condition logic in the rockchip_asrc_get_clk_parent
function by replacing the third "&&" with "||".

Change-Id: Ib5c00812bb72c0443ea9565e8d669f7a7fafd156
Signed-off-by: Zhong Shengquan <shengquan.zhong@rock-chips.com>
This commit is contained in:
Zhong Shengquan
2024-09-23 20:48:14 +08:00
committed by Tao Huang
parent 38724c75e9
commit b0ca1b7b89

View File

@@ -1269,7 +1269,7 @@ static struct clk *rockchip_asrc_get_clk_parent(struct clk *clk, char *clk_names
name_len = strlen(name);
if ((name_len > 1) && (name[name_len - 1] == '0') &&
(name[name_len - 2] < '0' && name[name_len - 2] > '9')) {
(name[name_len - 2] < '0' || name[name_len - 2] > '9')) {
name_temp = kstrdup(name, GFP_KERNEL);
if (!name_temp)
return ERR_PTR(-ENOMEM);