Clean up exit path from rl_attach() to remove multiple returns
This commit is contained in:
parent
f288477e4e
commit
3f54508cba
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue