diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-06-08 16:05:14 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-06-09 17:30:11 +0200 |
commit | 12bda1076c76c87d40fbd9d5dfa5ddf6f60a1772 (patch) | |
tree | c8cf41f49f8873614ab2c2df611609f1642190b4 /sound/pci/emu10k1/timer.c | |
parent | 549717fc5b4cf5a791d46e23c607c03afc8c94d3 (diff) | |
download | linux-12bda1076c76c87d40fbd9d5dfa5ddf6f60a1772.tar.bz2 |
ALSA: emu10k1: Fix assignment in if condition
PCI EMU10k1 driver code contains a few assignments in if condition,
which is a bad coding style that may confuse readers and occasionally
lead to bugs.
This patch is merely for coding-style fixes, no functional changes.
Link: https://lore.kernel.org/r/20210608140540.17885-41-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/timer.c')
-rw-r--r-- | sound/pci/emu10k1/timer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/emu10k1/timer.c b/sound/pci/emu10k1/timer.c index c2803000aace..2435d3ba68f7 100644 --- a/sound/pci/emu10k1/timer.c +++ b/sound/pci/emu10k1/timer.c @@ -72,7 +72,8 @@ int snd_emu10k1_timer(struct snd_emu10k1 *emu, int device) tid.card = emu->card->number; tid.device = device; tid.subdevice = 0; - if ((err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer)) >= 0) { + err = snd_timer_new(emu->card, "EMU10K1", &tid, &timer); + if (err >= 0) { strcpy(timer->name, "EMU10K1 timer"); timer->private_data = emu; timer->hw = snd_emu10k1_timer_hw; |