Skip to content

Commit

Permalink
USB: BKL removal: usb-skeleton
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 c8b492a commit b92a97e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/usb-skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/smp_lock.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/mutex.h>
Expand Down Expand Up @@ -91,7 +90,6 @@ static int skel_open(struct inode *inode, struct file *file)
int subminor;
int retval = 0;

lock_kernel();
subminor = iminor(inode);

interface = usb_find_interface(&skel_driver, subminor);
Expand Down Expand Up @@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file)
mutex_unlock(&dev->io_mutex);

exit:
unlock_kernel();
return retval;
}

Expand Down

0 comments on commit b92a97e

Please sign in to comment.