diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-06-21 04:07:21 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-21 05:04:42 -0400 |
commit | f04684b4d85d6371126f476d3268ebf6a0bd57cf (patch) | |
tree | 29e63185eaab8d842fff72e144038ed515a7e2ab | |
parent | a57a46b93244a0a916b894d8b2ca2a6cfe1904d3 (diff) |
ALSA: lx6464es: Missing error code in snd_lx6464es_create()
We forgot to set the error code on this error path.
Fixes: 4a23fc8cc068 ("ALSA: lx6464es: add error handling for pci_ioremap_bar")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/lx6464es/lx6464es.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index 6c85f13ab23f..54f6252faca6 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c | |||
@@ -1018,6 +1018,7 @@ static int snd_lx6464es_create(struct snd_card *card, | |||
1018 | chip->port_dsp_bar = pci_ioremap_bar(pci, 2); | 1018 | chip->port_dsp_bar = pci_ioremap_bar(pci, 2); |
1019 | if (!chip->port_dsp_bar) { | 1019 | if (!chip->port_dsp_bar) { |
1020 | dev_err(card->dev, "cannot remap PCI memory region\n"); | 1020 | dev_err(card->dev, "cannot remap PCI memory region\n"); |
1021 | err = -ENOMEM; | ||
1021 | goto remap_pci_failed; | 1022 | goto remap_pci_failed; |
1022 | } | 1023 | } |
1023 | 1024 | ||