USB: BKL removal: usbtmc

BKL not needed at all. Removed without replacement.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Oliver Neukum 2010-01-14 16:08:42 +01:00 committed by Greg Kroah-Hartman
parent b92a97efe0
commit 0022457a54
1 changed files with 0 additions and 3 deletions

View File

@ -26,7 +26,6 @@
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/kref.h> #include <linux/kref.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/smp_lock.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/usb/tmc.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; struct usbtmc_device_data *data;
int retval = 0; int retval = 0;
lock_kernel();
intf = usb_find_interface(&usbtmc_driver, iminor(inode)); intf = usb_find_interface(&usbtmc_driver, iminor(inode));
if (!intf) { if (!intf) {
printk(KERN_ERR KBUILD_MODNAME printk(KERN_ERR KBUILD_MODNAME
@ -130,7 +128,6 @@ static int usbtmc_open(struct inode *inode, struct file *filp)
filp->private_data = data; filp->private_data = data;
exit: exit:
unlock_kernel();
return retval; return retval;
} }