mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
ALSA: vx: vx_core: clarify operator precedence
Fix cppcheck warning sound/drivers/vx/vx_core.c:600:49: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] chip->chip_status & VX_STAT_XILINX_LOADED ? "Loaded" : "No"); ^ sound/drivers/vx/vx_core.c:602:47: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] chip->chip_status & VX_STAT_DEVICE_INIT ? "Yes" : "No"); ^ Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200902212133.30964-17-pierre-louis.bossart@linux.intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
93fcef86ca
commit
b7dcd6ac02
@ -597,9 +597,9 @@ static void vx_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *b
|
||||
|
||||
snd_iprintf(buffer, "%s\n", chip->card->longname);
|
||||
snd_iprintf(buffer, "Xilinx Firmware: %s\n",
|
||||
chip->chip_status & VX_STAT_XILINX_LOADED ? "Loaded" : "No");
|
||||
(chip->chip_status & VX_STAT_XILINX_LOADED) ? "Loaded" : "No");
|
||||
snd_iprintf(buffer, "Device Initialized: %s\n",
|
||||
chip->chip_status & VX_STAT_DEVICE_INIT ? "Yes" : "No");
|
||||
(chip->chip_status & VX_STAT_DEVICE_INIT) ? "Yes" : "No");
|
||||
snd_iprintf(buffer, "DSP audio info:");
|
||||
if (chip->audio_info & VX_AUDIO_INFO_REAL_TIME)
|
||||
snd_iprintf(buffer, " realtime");
|
||||
|
Loading…
Reference in New Issue
Block a user