mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
USB: BKL removal: usb-skeleton
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:
parent
c8b492a86d
commit
b92a97efe0
@ -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>
|
||||
@ -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);
|
||||
@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file)
|
||||
mutex_unlock(&dev->io_mutex);
|
||||
|
||||
exit:
|
||||
unlock_kernel();
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user