aboutsummaryrefslogtreecommitdiff
path: root/sound/pcmcia/pdaudiocf
diff options
context:
space:
mode:
authorTakashi Iwai2021-06-08 16:05:31 +0200
committerTakashi Iwai2021-06-09 17:30:28 +0200
commit2073fa449d6d2ac52d511fad4bce121fd284a7f3 (patch)
tree9aa506d127a35bd3c4f3024b9b3ea4be01e02fea /sound/pcmcia/pdaudiocf
parentf9a6bb841f737015aface3ba4ac845e66542850e (diff)
ALSA: pcmcia: Fix assignment in if condition
PCMCIA VX222 and PDAudioCF drivers contain 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-58-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia/pdaudiocf')
-rw-r--r--sound/pcmcia/pdaudiocf/pdaudiocf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf.c b/sound/pcmcia/pdaudiocf/pdaudiocf.c
index 144582350a05..8363ec08df5d 100644
--- a/sound/pcmcia/pdaudiocf/pdaudiocf.c
+++ b/sound/pcmcia/pdaudiocf/pdaudiocf.c
@@ -170,7 +170,8 @@ static int snd_pdacf_assign_resources(struct snd_pdacf *pdacf, int port, int irq
if (err < 0)
return err;
- if ((err = snd_card_register(card)) < 0)
+ err = snd_card_register(card);
+ if (err < 0)
return err;
return 0;