mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
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.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
dd1431e535
commit
6ea9a2b84c
1 changed files with 3 additions and 4 deletions
|
@ -915,10 +915,9 @@ snd_harmony_create(struct snd_card *card,
|
|||
spin_lock_init(&h->mixer_lock);
|
||||
spin_lock_init(&h->lock);
|
||||
|
||||
if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL,
|
||||
h, &ops)) < 0) {
|
||||
goto free_and_ret;
|
||||
}
|
||||
err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, h, &ops);
|
||||
if (err < 0)
|
||||
goto free_and_ret;
|
||||
|
||||
*rchip = h;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue