Commit b92a97ef authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

USB: BKL removal: usb-skeleton

BKL not needed at all. Removed without replacement.
Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c8b492a8
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/kref.h> #include <linux/kref.h>
#include <linux/smp_lock.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/usb.h> #include <linux/usb.h>
#include <linux/mutex.h> #include <linux/mutex.h>
...@@ -91,7 +90,6 @@ static int skel_open(struct inode *inode, struct file *file) ...@@ -91,7 +90,6 @@ static int skel_open(struct inode *inode, struct file *file)
int subminor; int subminor;
int retval = 0; int retval = 0;
lock_kernel();
subminor = iminor(inode); subminor = iminor(inode);
interface = usb_find_interface(&skel_driver, subminor); interface = usb_find_interface(&skel_driver, subminor);
...@@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file) ...@@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file)
mutex_unlock(&dev->io_mutex); mutex_unlock(&dev->io_mutex);
exit: exit:
unlock_kernel();
return retval; return retval;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment