forked from luck/tmp_suning_uos_patched
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:
parent
e2eba551d2
commit
847a040dd2
|
@ -780,11 +780,11 @@ int snd_sof_ipc_valid(struct snd_sof_dev *sdev)
|
|||
" lock debug: %s\n"
|
||||
" lock vdebug: %s\n",
|
||||
v->build, v->date, v->time,
|
||||
ready->flags & SOF_IPC_INFO_GDB ?
|
||||
(ready->flags & SOF_IPC_INFO_GDB) ?
|
||||
"enabled" : "disabled",
|
||||
ready->flags & SOF_IPC_INFO_LOCKS ?
|
||||
(ready->flags & SOF_IPC_INFO_LOCKS) ?
|
||||
"enabled" : "disabled",
|
||||
ready->flags & SOF_IPC_INFO_LOCKSV ?
|
||||
(ready->flags & SOF_IPC_INFO_LOCKSV) ?
|
||||
"enabled" : "disabled");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user