[PATCH 02/44] libpci: code cleanup

Daniel Hellstrom daniel at gaisler.com
Fri Mar 3 14:56:35 UTC 2017


---
 cpukit/libpci/pci_access.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cpukit/libpci/pci_access.c b/cpukit/libpci/pci_access.c
index 191b06a..11e48c1 100644
--- a/cpukit/libpci/pci_access.c
+++ b/cpukit/libpci/pci_access.c
@@ -11,9 +11,7 @@
 #include <pci/access.h>
 
 /* Access Routines valid after a PCI-Access-Driver has registered */
-struct pci_access_drv pci_access_ops = {
-	.cfg = {.read8 = 0},
-};
+struct pci_access_drv pci_access_ops;
 
 /* Read a 8-bit register over configuration space */
 int pci_cfg_r8(pci_dev_t dev, int ofs, uint8_t *data)
-- 
2.7.4




More information about the devel mailing list