summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-02-09 22:32:50 +0000
committernjl <njl@FreeBSD.org>2003-02-09 22:32:50 +0000
commitb56ce9f887a3a2f426a777731e371d794c6f9f0d (patch)
tree2a9afc1b8cdb099e79ad0c87ed8d3c348361b565 /sys/pci
parent9d09c03766e235f8a6fc8ed941759a5423058a58 (diff)
downloadFreeBSD-src-b56ce9f887a3a2f426a777731e371d794c6f9f0d.zip
FreeBSD-src-b56ce9f887a3a2f426a777731e371d794c6f9f0d.tar.gz
Clean up exit path from rl_attach() to remove multiple returns
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_rl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index e1713bb..39cc6e8 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
OpenPOWER on IntegriCloud