提交 c8b492a8 编写于 作者: O Oliver Neukum 提交者: Greg Kroah-Hartman

usb: BKL removal: usblp

BKL was not needed at all. Removed without replacement.
Signed-off-by: NOliver Neukum <oliver@neukum.org>
Acked-by: NPete Zaitcev <zaitcev@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 4e0961d5
......@@ -56,7 +56,6 @@
#include <linux/slab.h>
#include <linux/lp.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
#undef DEBUG
#include <linux/usb.h>
......@@ -396,7 +395,6 @@ static int usblp_open(struct inode *inode, struct file *file)
if (minor < 0)
return -ENODEV;
lock_kernel();
mutex_lock (&usblp_mutex);
retval = -ENODEV;
......@@ -436,7 +434,6 @@ static int usblp_open(struct inode *inode, struct file *file)
}
out:
mutex_unlock (&usblp_mutex);
unlock_kernel();
return retval;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册