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: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Pierre-Louis Bossart 2019-06-12 11:57:05 -05:00 committed by Mark Brown
parent e2eba551d2
commit 847a040dd2
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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");
} }