mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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>
This commit is contained in:
parent
13c986607f
commit
429731d308
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user