diff options
Diffstat (limited to 'lib/igt_kmod.c')
-rw-r--r-- | lib/igt_kmod.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index 109fa81f..c41367d8 100644 --- a/lib/igt_kmod.c +++ b/lib/igt_kmod.c @@ -431,9 +431,7 @@ void igt_kselftests(const char *module_name, snprintf(options, sizeof(options), "%s=1 %s", tl->param, module_options ?: ""); - err = 0; - if (modprobe(kmod, options)) - err = -errno; + err = modprobe(kmod, options); kmod_module_remove_module(kmod, 0); if (err == -ENOTTY) /* special case */ |