Commit f30f2c2d authored by Paul Bolle's avatar Paul Bolle Committed by Greg Kroah-Hartman

staging: comedi: remove check for CONFIG_KMOD

The comedi driver was added in v2.6.29. That's the same release that
removed the Kconfig symbol KMOD. So the code behind a test for its
macro has been hidden since it was in staging. Remove it.

Remove a useless assignment to "dev->in_request_module" too. That
variable seems pointless anyhow, but that's a different issue.
Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 464ae880
...@@ -2351,14 +2351,6 @@ static int comedi_open(struct inode *inode, struct file *file) ...@@ -2351,14 +2351,6 @@ static int comedi_open(struct inode *inode, struct file *file)
if (capable(CAP_NET_ADMIN) && dev->in_request_module) if (capable(CAP_NET_ADMIN) && dev->in_request_module)
goto ok; goto ok;
dev->in_request_module = true;
#ifdef CONFIG_KMOD
mutex_unlock(&dev->mutex);
request_module("char-major-%i-%i", COMEDI_MAJOR, dev->minor);
mutex_lock(&dev->mutex);
#endif
dev->in_request_module = false; dev->in_request_module = false;
if (!dev->attached && !capable(CAP_NET_ADMIN)) { if (!dev->attached && !capable(CAP_NET_ADMIN)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment