From 2ac461b2eca788fa0559312d45efd3caf6eea9bb Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 9 May 2008 14:49:32 -0700 Subject: Initialize err to 0 in pci_device_solx_devfs_map_range Prevents returning errors when mapping actually succeeds --- src/solx_devfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/solx_devfs.c b/src/solx_devfs.c index 08de4d0..eceb9af 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -852,7 +852,7 @@ pci_device_solx_devfs_map_range(struct pci_device *dev, { const int prot = ((map->flags & PCI_DEV_MAP_FLAG_WRITABLE) != 0) ? (PROT_READ | PROT_WRITE) : PROT_READ; - int err; + int err = 0; if (xsvc_fd < 0) { -- cgit v1.2.3