]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/proc.c
Squashed compiler warnings about code with no effect
[pciutils.git] / lib / proc.c
index 9d02b4107d5dc9781c2b4bb10556c63d0ecce655..f493e491e771684c0ebd0e87843d3319bf89f7cb 100644 (file)
@@ -21,7 +21,7 @@
 static void
 proc_config(struct pci_access *a)
 {
-  a->method_params[PCI_ACCESS_PROC_BUS_PCI] = PATH_PROC_BUS_PCI;
+  a->method_params[PCI_ACCESS_PROC_BUS_PCI] = PCI_PATH_PROC_BUS_PCI;
 }
 
 static int
@@ -153,7 +153,7 @@ proc_read(struct pci_dev *d, int pos, byte *buf, int len)
       return 0;
     }
   else if (res != len)
-    d->access->warning("proc_read: tried to read %d bytes at %d, but got only %d", len, pos, res);
+    return 0;
   return 1;
 }