PCI: dwc: Fix inverted condition of DMA mask setup warning
[linux-2.6-microblaze.git] / drivers / pci / controller / dwc / pcie-designware-host.c
index 516b151..8a84c00 100644 (file)
@@ -397,12 +397,8 @@ int dw_pcie_host_init(struct pcie_port *pp)
                                                            pp);
 
                        ret = dma_set_mask(pci->dev, DMA_BIT_MASK(32));
-                       if (!ret) {
-                               dev_warn(pci->dev,
-                                        "Failed to set DMA mask to 32-bit. "
-                                        "Devices with only 32-bit MSI support"
-                                        " may not work properly\n");
-                       }
+                       if (ret)
+                               dev_warn(pci->dev, "Failed to set DMA mask to 32-bit. Devices with only 32-bit MSI support may not work properly\n");
 
                        pp->msi_data = dma_map_single_attrs(pci->dev, &pp->msi_msg,
                                                      sizeof(pp->msi_msg),