ALSA: pci: Simplify with dma_set_mask_and_coherent()
[sfrench/cifs-2.6.git] / sound / pci / maestro3.c
index f622c2a6f74654acb75ebbd6a1b4519041633633..d2c2cd6006f04711b7a782c133508c058610e3fc 100644 (file)
@@ -2532,8 +2532,7 @@ snd_m3_create(struct snd_card *card, struct pci_dev *pci,
                return -EIO;
 
        /* check, if we can restrict PCI DMA transfers to 28 bits */
-       if (dma_set_mask(&pci->dev, DMA_BIT_MASK(28)) < 0 ||
-           dma_set_coherent_mask(&pci->dev, DMA_BIT_MASK(28)) < 0) {
+       if (dma_set_mask_and_coherent(&pci->dev, DMA_BIT_MASK(28))) {
                dev_err(card->dev,
                        "architecture does not support 28bit PCI busmaster DMA\n");
                pci_disable_device(pci);