Skip to content

Commit 0ed6b31

Browse files
committed
ASoC: SOF: debug: clarify operator precedence
cppcheck warning: sound/soc/sof/debug.c:398:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] char *level = flags & SOF_DBG_DUMP_OPTIONAL ? KERN_DEBUG : KERN_ERR; ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent b4bd6b9 commit 0ed6b31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ static void snd_sof_dbg_print_fw_state(struct snd_sof_dev *sdev, const char *lev
395395

396396
void snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, const char *msg, u32 flags)
397397
{
398-
char *level = flags & SOF_DBG_DUMP_OPTIONAL ? KERN_DEBUG : KERN_ERR;
398+
char *level = (flags & SOF_DBG_DUMP_OPTIONAL) ? KERN_DEBUG : KERN_ERR;
399399
bool print_all = sof_debug_check_flag(SOF_DBG_PRINT_ALL_DUMPS);
400400

401401
if (flags & SOF_DBG_DUMP_OPTIONAL && !print_all)

0 commit comments

Comments
 (0)