From 97a7fcc1d9887b5dc0be54a08ef8aabb6bff1423 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 6 Jun 2008 05:02:01 +0000 Subject: [PATCH] cs has detach, remove bogus ifdef. Remove dedundant initialization of error to 0. --- sys/dev/cs/if_cs_isa.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/cs/if_cs_isa.c b/sys/dev/cs/if_cs_isa.c index bc2f889c043..780afd85a80 100644 --- a/sys/dev/cs/if_cs_isa.c +++ b/sys/dev/cs/if_cs_isa.c @@ -63,7 +63,7 @@ static struct isa_pnp_id cs_ids[] = { static int cs_isa_probe(device_t dev) { - int error = 0; + int error; /* Check isapnp ids */ error = ISA_PNP_PROBE(device_get_parent(dev), dev, cs_ids); @@ -101,9 +101,7 @@ static device_method_t cs_isa_methods[] = { /* Device interface */ DEVMETHOD(device_probe, cs_isa_probe), DEVMETHOD(device_attach, cs_isa_attach), -#ifdef CS_HAS_DETACH DEVMETHOD(device_detach, cs_detach), -#endif { 0, 0 } };