diff options
author | Nate Lawson <njl@FreeBSD.org> | 2003-02-09 22:32:50 +0000 |
---|---|---|
committer | Nate Lawson <njl@FreeBSD.org> | 2003-02-09 22:32:50 +0000 |
commit | 3f54508cbabeef8ba4fb1efbb86ec05b2bb39619 (patch) | |
tree | 2a9afc1b8cdb099e79ad0c87ed8d3c348361b565 /sys/pci/if_rl.c | |
parent | f288477e4e87a91fc3b09742f611a70017e9e0c8 (diff) | |
download | src-3f54508cbabeef8ba4fb1efbb86ec05b2bb39619.tar.gz src-3f54508cbabeef8ba4fb1efbb86ec05b2bb39619.zip |
Clean up exit path from rl_attach() to remove multiple returns
Notes
Notes:
svn path=/head/; revision=110601
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r-- | sys/pci/if_rl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index e1713bb5f6a4..39cc6e87306d 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -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 |