aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2010-01-14 10:08:13 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 17:54:26 -0500
commitb92a97efe00cf4e3555585f40dbe96512bba8f95 (patch)
tree9cf737ad5ab7f25094e42727de28a15fb52bd341 /drivers/usb
parentc8b492a86d71d43fb32e29282e6405663177b9e4 (diff)
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/usb-skeleton.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c
index e94176bfd272..61522787f39c 100644
--- a/drivers/usb/usb-skeleton.c
+++ b/drivers/usb/usb-skeleton.c
@@ -18,7 +18,6 @@
18#include <linux/slab.h> 18#include <linux/slab.h>
19#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/kref.h> 20#include <linux/kref.h>
21#include <linux/smp_lock.h>
22#include <linux/uaccess.h> 21#include <linux/uaccess.h>
23#include <linux/usb.h> 22#include <linux/usb.h>
24#include <linux/mutex.h> 23#include <linux/mutex.h>
@@ -91,7 +90,6 @@ static int skel_open(struct inode *inode, struct file *file)
91 int subminor; 90 int subminor;
92 int retval = 0; 91 int retval = 0;
93 92
94 lock_kernel();
95 subminor = iminor(inode); 93 subminor = iminor(inode);
96 94
97 interface = usb_find_interface(&skel_driver, subminor); 95 interface = usb_find_interface(&skel_driver, subminor);
@@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file)
137 mutex_unlock(&dev->io_mutex); 135 mutex_unlock(&dev->io_mutex);
138 136
139exit: 137exit:
140 unlock_kernel();
141 return retval; 138 return retval;
142} 139}
143 140