diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-07 12:58:17 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-07 12:59:27 +0000 |
commit | 721866d83907c8ade5d20121418261d715b145ed (patch) | |
tree | 5e8841139b756f465493222b52788caf5b78a4a4 /lib/igt_kmod.c | |
parent | 3e2a75330bb02525fd55e389df9d2be7c9ce154f (diff) |
lib/kselftests: Eliminate ENOTTY hack
Returning a positive value from module loading does not get interpretted
as an error, so we can forgo passing a proxy value of -ENOTTY.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kmod.c')
-rw-r--r-- | lib/igt_kmod.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/igt_kmod.c b/lib/igt_kmod.c index 388be30f..beb80b8b 100644 --- a/lib/igt_kmod.c +++ b/lib/igt_kmod.c @@ -398,9 +398,6 @@ void igt_kselftests(const char *module_name, if (modprobe(kmod, options)) err = -errno; kmod_module_remove_module(kmod, 0); - - if (err == -ENOTTY) /* special case */ - err = 0; if (err) kmsg_dump(kmsg); |