Commit 6ea9a2b8 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: parisc: Fix assignment in if condition

PARISC harmony driver code contains an assignment 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-67-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent dd1431e5
...@@ -915,10 +915,9 @@ snd_harmony_create(struct snd_card *card, ...@@ -915,10 +915,9 @@ snd_harmony_create(struct snd_card *card,
spin_lock_init(&h->mixer_lock); spin_lock_init(&h->mixer_lock);
spin_lock_init(&h->lock); spin_lock_init(&h->lock);
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, h, &ops);
h, &ops)) < 0) { if (err < 0)
goto free_and_ret; goto free_and_ret;
}
*rchip = h; *rchip = h;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment