summaryrefslogtreecommitdiffstats
path: root/sys/dev/cs/if_cs_pccard.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-06-06 05:02:36 +0000
committerimp <imp@FreeBSD.org>2008-06-06 05:02:36 +0000
commitc3d4497632764d87538e570b4255aec4ece85f09 (patch)
treeb13cdec0c213f36f707b5f440114bb51f6d74863 /sys/dev/cs/if_cs_pccard.c
parentfbcb36af0af8275530bb030eaa38a5c299337c9b (diff)
downloadFreeBSD-src-c3d4497632764d87538e570b4255aec4ece85f09.zip
FreeBSD-src-c3d4497632764d87538e570b4255aec4ece85f09.tar.gz
Simplify error checking when reading the function....
Diffstat (limited to 'sys/dev/cs/if_cs_pccard.c')
-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 a1f83d4..8b5f91d 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);
OpenPOWER on IntegriCloud