Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9001be41 authored by Xiaoyu Ye's avatar Xiaoyu Ye Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic



A conditional branch is skipped due to incorrect string comparison.
It is fixed by using "strcmp" to perform string comparison.

CRs-fixed: 1085889
Change-Id: I12be44ac272fc5079230feb6ae24c68ccde99cf2
Signed-off-by: default avatarXiaoyu Ye <benyxy@codeaurora.org>
Signed-off-by: default avatarBhalchandra Gajare <gajare@codeaurora.org>
parent 9febdfdd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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",