config: remove default configs used with make
[dpdk.git] / drivers / bus / pci / pci_common_uio.c
index 793dfd0..f4dca9d 100644 (file)
@@ -58,7 +58,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev)
                                        "Cannot mmap device resource file %s to address: %p\n",
                                        uio_res->maps[i].path,
                                        uio_res->maps[i].addr);
-                               if (mapaddr != NULL) {
+                               if (mapaddr != MAP_FAILED) {
                                        /* unmap addrs correctly mapped */
                                        for (j = 0; j < i; j++)
                                                pci_unmap_resource(