diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-26 22:10:58 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:40:55 +0200 |
| commit | 7dc7f6d81e57f33cf484839e0ca7b7fdc61594fa (patch) | |
| tree | 1778fed920b7a76549c632e4c0d0c1c946c98f37 | |
| parent | 8c2fcff15d7b7074563937628daabf9eb998d450 (diff) | |
ASoC: msm: qdsp6v2: Fix a clang warning in qdsp_cvs_callback
../sound/soc/msm/qdsp6v2/q6voice.c:7114:55: warning: use of logical '||'
with constant operand [-Wconstant-logical-operand]
} else if (data->opcode == VSS_ICOMMON_RSP_GET_PARAM ||
^
../sound/soc/msm/qdsp6v2/q6voice.c:7114:55: note: use '|' for a bitwise
operation
} else if (data->opcode == VSS_ICOMMON_RSP_GET_PARAM ||
^~
|
1 warning generated.
Fixes: 36ed1afb5699 ("ASoC: msm: qdsp6v2: Update rtac driver to support Instance ID")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
| -rw-r--r-- | sound/soc/msm/qdsp6v2/q6voice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/msm/qdsp6v2/q6voice.c b/sound/soc/msm/qdsp6v2/q6voice.c index a748f3671da7..9de2ee7f1cb0 100644 --- a/sound/soc/msm/qdsp6v2/q6voice.c +++ b/sound/soc/msm/qdsp6v2/q6voice.c @@ -7113,7 +7113,7 @@ static int32_t qdsp_cvp_callback(struct apr_client_data *data, void *priv) } } } else if (data->opcode == VSS_ICOMMON_RSP_GET_PARAM || - VSS_ICOMMON_RSP_GET_PARAM_V3) { + data->opcode == VSS_ICOMMON_RSP_GET_PARAM_V3) { pr_debug("%s: VSS_ICOMMON_RSP_GET_PARAM\n", __func__); ptr = data->payload; if (ptr[0] != 0) { |
