]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: BKL removal: idmouse
authorOliver Neukum <oliver@neukum.org>
Thu, 14 Jan 2010 15:11:03 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:28 +0000 (14:54 -0800)
BKL was not needed at all. Removed without replacement.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/idmouse.c

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