diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 20:29:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 20:29:34 +0000 |
commit | 2048912526464c943ca01eb049aa45a6f63814b6 (patch) | |
tree | 7de2bef7c0ec5ca84ef0ae4ad8013d1bc6735757 /sys/isa/vga_isa.c | |
parent | e8c1d97f209fdc1266d67f8f5ec3d76ae575750e (diff) | |
download | FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.zip FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.tar.gz |
Remove unused variable(s).
Found by: FlexeLint
Diffstat (limited to 'sys/isa/vga_isa.c')
-rw-r--r-- | sys/isa/vga_isa.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/isa/vga_isa.c b/sys/isa/vga_isa.c index 1b7b2ec..fa4459b 100644 --- a/sys/isa/vga_isa.c +++ b/sys/isa/vga_isa.c @@ -93,7 +93,6 @@ static int isavga_probe(device_t dev) { video_adapter_t adp; - device_t bus; int error; /* No pnp support */ @@ -103,7 +102,6 @@ isavga_probe(device_t dev) device_set_desc(dev, "Generic ISA VGA"); error = vga_probe_unit(device_get_unit(dev), &adp, device_get_flags(dev)); if (error == 0) { - bus = device_get_parent(dev); bus_set_resource(dev, SYS_RES_IOPORT, 0, adp.va_io_base, adp.va_io_size); bus_set_resource(dev, SYS_RES_MEMORY, 0, @@ -122,8 +120,6 @@ static int isavga_attach(device_t dev) { vga_softc_t *sc; - struct resource *port; - struct resource *mem; int unit; int rid; int error; @@ -132,10 +128,10 @@ isavga_attach(device_t dev) sc = device_get_softc(dev); rid = 0; - port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, + bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0, 0, RF_ACTIVE | RF_SHAREABLE); rid = 0; - mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, + bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 0, RF_ACTIVE | RF_SHAREABLE); error = vga_attach_unit(unit, sc, device_get_flags(dev)); |