From c3d4497632764d87538e570b4255aec4ece85f09 Mon Sep 17 00:00:00 2001 From: imp Date: Fri, 6 Jun 2008 05:02:36 +0000 Subject: Simplify error checking when reading the function.... --- sys/dev/cs/if_cs_pccard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/cs') 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); -- cgit v1.1