summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-06-06 05:02:01 +0000
committerimp <imp@FreeBSD.org>2008-06-06 05:02:01 +0000
commitfbcb36af0af8275530bb030eaa38a5c299337c9b (patch)
treea21458fb9492dde5e5e9e619d382903a4f72614a /sys/dev
parent38e6324da40386642b2361f5c422ea1d1722b94c (diff)
downloadFreeBSD-src-fbcb36af0af8275530bb030eaa38a5c299337c9b.zip
FreeBSD-src-fbcb36af0af8275530bb030eaa38a5c299337c9b.tar.gz
cs has detach, remove bogus ifdef.
Remove dedundant initialization of error to 0.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cs/if_cs_isa.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/cs/if_cs_isa.c b/sys/dev/cs/if_cs_isa.c
index bc2f889..780afd8 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 }
};
OpenPOWER on IntegriCloud