aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cs
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cs')
-rw-r--r--sys/dev/cs/if_cs_pccard.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/cs/if_cs_pccard.c b/sys/dev/cs/if_cs_pccard.c
index a1f83d4e134a2..8b5f91d9e2638 100644
--- a/sys/dev/cs/if_cs_pccard.c
+++ b/sys/dev/cs/if_cs_pccard.c
@@ -62,9 +62,7 @@ cs_pccard_probe(device_t dev)
uint32_t fcn = PCCARD_FUNCTION_UNSPEC;
/* Make sure we're a network function */
- error = pccard_get_function(dev, &fcn);
- if (error != 0)
- return (error);
+ pccard_get_function(dev, &fcn);
if (fcn != PCCARD_FUNCTION_NETWORK)
return (ENXIO);