Commit 847a040d authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: SOF: ipc: clarify operator precedence

Cppcheck complains about the following warning, fix by adding
parentheses

[sound/soc/sof/ipc.c:783]:
(style) Clarify calculation precedence for '&' and '?'.
[sound/soc/sof/ipc.c:785]:
(style) Clarify calculation precedence for '&' and '?'.
[sound/soc/sof/ipc.c:787]:
(style) Clarify calculation precedence for '&' and '?'.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e2eba551
...@@ -780,11 +780,11 @@ int snd_sof_ipc_valid(struct snd_sof_dev *sdev) ...@@ -780,11 +780,11 @@ int snd_sof_ipc_valid(struct snd_sof_dev *sdev)
" lock debug: %s\n" " lock debug: %s\n"
" lock vdebug: %s\n", " lock vdebug: %s\n",
v->build, v->date, v->time, v->build, v->date, v->time,
ready->flags & SOF_IPC_INFO_GDB ? (ready->flags & SOF_IPC_INFO_GDB) ?
"enabled" : "disabled", "enabled" : "disabled",
ready->flags & SOF_IPC_INFO_LOCKS ? (ready->flags & SOF_IPC_INFO_LOCKS) ?
"enabled" : "disabled", "enabled" : "disabled",
ready->flags & SOF_IPC_INFO_LOCKSV ? (ready->flags & SOF_IPC_INFO_LOCKSV) ?
"enabled" : "disabled"); "enabled" : "disabled");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment