diff options
-rw-r--r-- | drivers/usb/usb-skeleton.c | 3 |
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 | ||
139 | exit: | 137 | exit: |
140 | unlock_kernel(); | ||
141 | return retval; | 138 | return retval; |
142 | } | 139 | } |
143 | 140 | ||