diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-05-09 14:49:32 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2008-05-09 14:49:32 -0700 |
commit | 2ac461b2eca788fa0559312d45efd3caf6eea9bb (patch) | |
tree | 416f8335cf1f6c16a4312a81b03e4174589362ff /src | |
parent | b30d458202bc0304c705eb081b12ead860584bea (diff) |
Initialize err to 0 in pci_device_solx_devfs_map_range
Prevents returning errors when mapping actually succeeds
Diffstat (limited to 'src')
-rw-r--r-- | src/solx_devfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |