mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
committed by
Tao Huang
parent
38724c75e9
commit
b0ca1b7b89
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user