Skip to content

Commit

Permalink
USB: BKL removal: usbtmc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent b92a97e commit 0022457
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/class/usbtmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -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
Expand All @@ -130,7 +128,6 @@ static int usbtmc_open(struct inode *inode, struct file *filp)
filp->private_data = data;

exit:
unlock_kernel();
return retval;
}

Expand Down

0 comments on commit 0022457

Please sign in to comment.