summaryrefslogtreecommitdiffstats
path: root/share/examples/kld/cdev
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-08-30 09:49:59 +0000
committerpjd <pjd@FreeBSD.org>2004-08-30 09:49:59 +0000
commit9833028211de81bbeb550b48181739fc95c1ef81 (patch)
tree0d22d48c820b435d94fd29a9b01908cbb8161ba3 /share/examples/kld/cdev
parent02b88adf06849568c47ca9e800a77eb074601a46 (diff)
downloadFreeBSD-src-9833028211de81bbeb550b48181739fc95c1ef81.zip
FreeBSD-src-9833028211de81bbeb550b48181739fc95c1ef81.tar.gz
According to module(9), when command is unrecognized, the module should
return EOPNOTSUPP.
Diffstat (limited to 'share/examples/kld/cdev')
-rw-r--r--share/examples/kld/cdev/module/cdevmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/examples/kld/cdev/module/cdevmod.c b/share/examples/kld/cdev/module/cdevmod.c
index 0f6f3cb..7b9a453 100644
--- a/share/examples/kld/cdev/module/cdevmod.c
+++ b/share/examples/kld/cdev/module/cdevmod.c
@@ -134,7 +134,7 @@ cdev_load(module_t mod, int cmd, void *arg)
break; /* Success*/
default: /* we only understand load/unload*/
- err = EINVAL;
+ err = EOPNOTSUPP;
break;
}
OpenPOWER on IntegriCloud