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

This commit is contained in:
njl 2003-02-09 22:32:50 +00:00
parent 9d09c03766
commit b56ce9f887

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