rt2x00: Restrict DMA to 32-bit addresses.
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rt2x00 / rt2x00pci.c
index 971af2546b59a85e3e820f6d9b7e14e9276a515f..60893de3bf8ff64c99f3552244c0cd35c3713020 100644 (file)
@@ -412,8 +412,7 @@ int rt2x00pci_probe(struct pci_dev *pci_dev, const struct pci_device_id *id)
        if (pci_set_mwi(pci_dev))
                ERROR_PROBE("MWI not available.\n");
 
-       if (pci_set_dma_mask(pci_dev, DMA_64BIT_MASK) &&
-           pci_set_dma_mask(pci_dev, DMA_32BIT_MASK)) {
+       if (pci_set_dma_mask(pci_dev, DMA_32BIT_MASK)) {
                ERROR_PROBE("PCI DMA not supported.\n");
                retval = -EIO;
                goto exit_disable_device;