Clean up exit path from rl_attach() to remove multiple returns
This commit is contained in:
parent
9d09c03766
commit
b56ce9f887
@ -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…
Reference in New Issue
Block a user