mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Simplify error checking when reading the function....
This commit is contained in:
parent
97a7fcc1d9
commit
71de0324d9
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue