diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:34:36 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:34:36 +0000 |
| commit | 60db3b9e60e7ede4babad72a2e9251ff75d14d4c (patch) | |
| tree | a3304043a228324eceee3f7cb630fe807f851378 /sys/dev/pci | |
| parent | 66f7a83274f5f01d9bee52a590f1b1ca669df720 (diff) | |
Notes
Diffstat (limited to 'sys/dev/pci')
| -rw-r--r-- | sys/dev/pci/pci.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 372a08278c1a..c849d2726e78 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -603,7 +603,6 @@ pci_enable_io_method(device_t dev, device_t child, int space) break; default: return (EINVAL); - break; } pci_set_command_bit(dev, child, bit); command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); @@ -634,7 +633,6 @@ pci_disable_io_method(device_t dev, device_t child, int space) break; default: return (EINVAL); - break; } pci_clear_command_bit(dev, child, bit); command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); @@ -899,11 +897,9 @@ pci_print_child(device_t dev, device_t child) { struct pci_devinfo *dinfo; struct resource_list *rl; - pcicfgregs *cfg; int retval = 0; dinfo = device_get_ivars(child); - cfg = &dinfo->cfg; rl = &dinfo->resources; retval += bus_print_child_header(dev, child); @@ -1220,10 +1216,8 @@ int pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) { struct pci_devinfo *dinfo; - pcicfgregs *cfg; dinfo = device_get_ivars(child); - cfg = &dinfo->cfg; switch (which) { case PCI_IVAR_ETHADDR: @@ -1246,7 +1240,6 @@ pci_write_ivar(device_t dev, device_t child, int which, uintptr_t value) default: return (ENOENT); } - return (0); } @@ -1449,10 +1442,8 @@ pci_child_location_str_method(device_t cbdev, device_t child, char *buf, size_t buflen) { struct pci_devinfo *dinfo; - pcicfgregs *cfg; dinfo = device_get_ivars(child); - cfg = &dinfo->cfg; snprintf(buf, buflen, "slot=%d function=%d", pci_get_slot(child), pci_get_function(child)); return (0); |
