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>
#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>
int subminor;
int retval = 0;
- lock_kernel();
subminor = iminor(inode);
interface = usb_find_interface(&skel_driver, subminor);
mutex_unlock(&dev->io_mutex);
exit:
- unlock_kernel();
return retval;
}