Clean up exit path from rl_attach() to remove multiple returns

This commit is contained in:
Nate Lawson 2003-02-09 22:32:50 +00:00
parent f288477e4e
commit 3f54508cba

View file

@ -1093,10 +1093,10 @@ rl_attach(dev)
}
callout_handle_init(&sc->rl_stat_ch);
return(0);
fail:
mtx_destroy(&sc->rl_mtx);
return(error);
if (error != 0)
mtx_destroy(&sc->rl_mtx);
return (error);
}
static int