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

USB: BKL removal: idmouse

BKL was 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 511e2d02
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/completion.h> #include <linux/completion.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/smp_lock.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <linux/usb.h> #include <linux/usb.h>
...@@ -227,20 +226,16 @@ static int idmouse_open(struct inode *inode, struct file *file) ...@@ -227,20 +226,16 @@ static int idmouse_open(struct inode *inode, struct file *file)
struct usb_interface *interface; struct usb_interface *interface;
int result; int result;
lock_kernel();
/* get the interface from minor number and driver information */ /* get the interface from minor number and driver information */
interface = usb_find_interface (&idmouse_driver, iminor (inode)); interface = usb_find_interface (&idmouse_driver, iminor (inode));
if (!interface) { if (!interface)
unlock_kernel();
return -ENODEV; return -ENODEV;
}
mutex_lock(&open_disc_mutex); mutex_lock(&open_disc_mutex);
/* get the device information block from the interface */ /* get the device information block from the interface */
dev = usb_get_intfdata(interface); dev = usb_get_intfdata(interface);
if (!dev) { if (!dev) {
mutex_unlock(&open_disc_mutex); mutex_unlock(&open_disc_mutex);
unlock_kernel();
return -ENODEV; return -ENODEV;
} }
...@@ -277,7 +272,6 @@ static int idmouse_open(struct inode *inode, struct file *file) ...@@ -277,7 +272,6 @@ static int idmouse_open(struct inode *inode, struct file *file)
/* unlock this device */ /* unlock this device */
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
unlock_kernel();
return result; return result;
} }
......
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