summaryrefslogtreecommitdiffstats
path: root/sbin/kldload/kldload.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/kldload/kldload.c')
-rw-r--r--sbin/kldload/kldload.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/kldload/kldload.c b/sbin/kldload/kldload.c
index dfde1f4..6e88546 100644
--- a/sbin/kldload/kldload.c
+++ b/sbin/kldload/kldload.c
@@ -181,14 +181,13 @@ main(int argc, char** argv)
printf("%s is already "
"loaded\n", argv[0]);
} else {
- if (errno == EEXIST) {
+ if (errno == EEXIST)
warnx("can't load %s: module "
"already loaded or "
"in kernel", argv[0]);
- } else {
+ else
warn("can't load %s", argv[0]);
- errors++;
- }
+ errors++;
}
} else {
if (verbose)
OpenPOWER on IntegriCloud