Merge "ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic"
This commit is contained in:
commit
79ef4a7206
1 changed files with 2 additions and 2 deletions
|
@ -4595,7 +4595,7 @@ static ssize_t afe_debug_write(struct file *filp,
|
|||
|
||||
lbuf[cnt] = '\0';
|
||||
|
||||
if (!strncmp(lb_str, "afe_loopback", 12)) {
|
||||
if (!strcmp(lb_str, "afe_loopback")) {
|
||||
rc = afe_get_parameters(lbuf, param, 3);
|
||||
if (!rc) {
|
||||
pr_info("%s: %lu %lu %lu\n", lb_str, param[0], param[1],
|
||||
|
@ -4624,7 +4624,7 @@ static ssize_t afe_debug_write(struct file *filp,
|
|||
rc = -EINVAL;
|
||||
}
|
||||
|
||||
} else if (!strncmp(lb_str, "afe_loopback_gain", 17)) {
|
||||
} else if (!strcmp(lb_str, "afe_loopback_gain")) {
|
||||
rc = afe_get_parameters(lbuf, param, 2);
|
||||
if (!rc) {
|
||||
pr_info("%s: %s %lu %lu\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue