summaryrefslogtreecommitdiff
path: root/sound/pci/bt87x.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-06-08 17:04:55 +0300
committerTakashi Iwai <tiwai@suse.de>2021-06-09 18:29:53 +0300
commit429731d3080e13caabaceebc41dac3d759350bbb (patch)
tree7386182b72d661ec31a859e0915db0bda8583c6a /sound/pci/bt87x.c
parent13c986607f57222fcc40ad7c21df429c42b4ea02 (diff)
downloadlinux-429731d3080e13caabaceebc41dac3d759350bbb.tar.xz
ALSA: bt87x: Fix assignment in if condition
PCI BT87x driver code contains an 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-22-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/bt87x.c')
-rw-r--r--sound/pci/bt87x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/bt87x.c b/sound/pci/bt87x.c
index 91512b345d19..39bcfb81e81c 100644
--- a/sound/pci/bt87x.c
+++ b/sound/pci/bt87x.c
@@ -719,7 +719,8 @@ static int snd_bt87x_create(struct snd_card *card,
chip->irq = -1;
spin_lock_init(&chip->reg_lock);
- if ((err = pci_request_regions(pci, "Bt87x audio")) < 0) {
+ err = pci_request_regions(pci, "Bt87x audio");
+ if (err < 0) {
kfree(chip);
pci_disable_device(pci);
return err;