aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@mail.by>2009-06-23 09:32:19 -0400
committerJiri Kosina <jkosina@suse.cz>2009-07-22 19:28:00 -0400
commit8b424887b603e953af7238fef96629424dc915cb (patch)
treead83ae7d53c0c20bd082ec3e71bba35f98401c9d /drivers
parentfd30ea8c871552ddd6a5e1c0886de8fef4df53bc (diff)
HID: Avoid double spin_lock_init on usbhid->lock
Avoid double spin_lock_init on usbhid->lock. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@mail.by> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/usbhid/hid-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
index 3c1fcb7640ab..9238bcffaf01 100644
--- a/drivers/hid/usbhid/hid-core.c
+++ b/drivers/hid/usbhid/hid-core.c
@@ -986,7 +986,6 @@ static int usbhid_start(struct hid_device *hid)
986 setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid); 986 setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid);
987 987
988 spin_lock_init(&usbhid->lock); 988 spin_lock_init(&usbhid->lock);
989 spin_lock_init(&usbhid->lock);
990 989
991 usbhid->intf = intf; 990 usbhid->intf = intf;
992 usbhid->ifnum = interface->desc.bInterfaceNumber; 991 usbhid->ifnum = interface->desc.bInterfaceNumber;