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

USB: BKL removal: usbtmc

BKL not needed at all. Removed without replacement.
Signed-off-by: NOliver Neukum <oliver@neukum.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 b92a97ef
......@@ -26,7 +26,6 @@
#include <linux/uaccess.h>
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
#include <linux/usb.h>
#include <linux/usb/tmc.h>
......@@ -114,7 +113,6 @@ static int usbtmc_open(struct inode *inode, struct file *filp)
struct usbtmc_device_data *data;
int retval = 0;
lock_kernel();
intf = usb_find_interface(&usbtmc_driver, iminor(inode));
if (!intf) {
printk(KERN_ERR KBUILD_MODNAME
......@@ -130,7 +128,6 @@ static int usbtmc_open(struct inode *inode, struct file *filp)
filp->private_data = data;
exit:
unlock_kernel();
return retval;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册