diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-12-02 09:02:28 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-12-02 09:02:27 -0800 |
| commit | 79ef4a7206632809dc98d15fa1a02a7381e2ae24 (patch) | |
| tree | 6be5a0325622566aea61790e89406ab48f54a7bc | |
| parent | eb564015ba1ba4648deb0a1c80f0bedfe837944b (diff) | |
| parent | 9001be418754df3ddbfe12a8cb4f73ffee73b194 (diff) | |
Merge "ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic"
| -rw-r--r-- | sound/soc/msm/qdsp6v2/q6afe.c | 4 |
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", |
