summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c
index b366adeb..26691e30 100644
--- a/lib/igt_kmod.c
+++ b/lib/igt_kmod.c
@@ -155,7 +155,7 @@ igt_kmod_load(const char *mod_name, const char *opts)
}
out:
kmod_module_unref(kmod);
- return -err ? err < 0 : err;
+ return err < 0 ? err : 0;
}
@@ -192,7 +192,7 @@ igt_kmod_unload(const char *mod_name, unsigned int flags)
out:
kmod_module_unref(kmod);
- return -err ? err < 0 : err;
+ return err < 0 ? err : 0;
}
/**