summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sbin/gbde/gbde.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sbin/gbde/gbde.c b/sbin/gbde/gbde.c
index 5b26186..a9ab3c2 100644
--- a/sbin/gbde/gbde.c
+++ b/sbin/gbde/gbde.c
@@ -722,12 +722,11 @@ main(int argc, char **argv)
if (argc < 3)
usage("Too few arguments\n");
- if ((i = modfind("g_bde")) < 0) {
- /* need to load the gbde module */
- if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0) {
- usage(GBDEMOD ": Kernel module not available\n");
- }
- }
+ if ((i = modfind("g_bde")) < 0) {
+ /* need to load the gbde module */
+ if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0)
+ usage(GBDEMOD ": Kernel module not available\n");
+ }
doopen = 0;
if (!strcmp(argv[1], "attach")) {
action = ACT_ATTACH;
OpenPOWER on IntegriCloud