summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiaoyu Ye <benyxy@codeaurora.org>2016-11-22 13:51:51 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-11-23 14:17:39 -0800
commit9001be418754df3ddbfe12a8cb4f73ffee73b194 (patch)
treeb39671e183e24c9aba64e4c61bc94e7d585e718d
parent9febdfdde008c8d7875b5186a4a37cb515cb924d (diff)
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: Xiaoyu Ye <benyxy@codeaurora.org> Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
-rw-r--r--sound/soc/msm/qdsp6v2/q6afe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6afe.c b/sound/soc/msm/qdsp6v2/q6afe.c
index c75f7214db1a..75dc7cf059e3 100644
--- a/sound/soc/msm/qdsp6v2/q6afe.c
+++ b/sound/soc/msm/qdsp6v2/q6afe.c
@@ -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",