]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ALSA: core: timer: clarify operator precedence
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 2 Sep 2020 21:21:20 +0000 (16:21 -0500)
committerTakashi Iwai <tiwai@suse.de>
Thu, 3 Sep 2020 07:25:26 +0000 (09:25 +0200)
fix cppcheck warning:

sound/core/timer.c:1286:9: style: Clarify calculation precedence for
'&' and '?'. [clarifyCalculation]
        ? "running" : "stopped");
        ^

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200902212133.30964-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c

index 1349f5b5be09afc689206ca47326b3d96d258ac8..b915d39e7acb3069c0773abc56dfa89cc5853fcf 100644 (file)
@@ -1281,8 +1281,8 @@ static void snd_timer_proc_read(struct snd_info_entry *entry,
                list_for_each_entry(ti, &timer->open_list_head, open_list)
                        snd_iprintf(buffer, "  Client %s : %s\n",
                                    ti->owner ? ti->owner : "unknown",
-                                   ti->flags & (SNDRV_TIMER_IFLG_START |
-                                                SNDRV_TIMER_IFLG_RUNNING)
+                                   (ti->flags & (SNDRV_TIMER_IFLG_START |
+                                                 SNDRV_TIMER_IFLG_RUNNING))
                                    ? "running" : "stopped");
        }
        mutex_unlock(&register_mutex);