MFi386: r278165

Silence a coverity warning about ignoring a return value.
This commit is contained in:
Yoshihiro Takahashi 2015-06-27 09:01:49 +00:00
parent 7d0de310ff
commit 5d62c861b5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=284886

View File

@ -157,10 +157,21 @@ static int
fe_isa_attach(device_t dev)
{
struct fe_softc *sc = device_get_softc(dev);
int error = 0;
if (sc->port_used)
fe98_alloc_port(dev, sc->type);
fe_alloc_irq(dev, 0);
/*
* Note: these routines aren't expected to fail since we also call
* them in the probe routine. But coverity complains, so we'll honor
* that complaint since the intention here was never to ignore them..
*/
if (sc->port_used) {
error = fe98_alloc_port(dev, sc->type);
if (error != 0)
return (error);
}
error = fe_alloc_irq(dev, 0);
if (error != 0)
return (error);
return fe_attach(dev);
}