提交 8b1dacb6 编写于 作者: W Wei Yongjun 提交者: Takashi Iwai

ALSA: sis7019: fix error return code in sis_chip_create()

Fix to return a negative error code in the pci_set_dma_mask() error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 8a90bb51
...@@ -1341,7 +1341,8 @@ static int sis_chip_create(struct snd_card *card, ...@@ -1341,7 +1341,8 @@ static int sis_chip_create(struct snd_card *card,
if (rc) if (rc)
goto error_out; goto error_out;
if (pci_set_dma_mask(pci, DMA_BIT_MASK(30)) < 0) { rc = pci_set_dma_mask(pci, DMA_BIT_MASK(30));
if (rc < 0) {
dev_err(&pci->dev, "architecture does not support 30-bit PCI busmaster DMA"); dev_err(&pci->dev, "architecture does not support 30-bit PCI busmaster DMA");
goto error_out_enabled; goto error_out_enabled;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册