summaryrefslogtreecommitdiff
path: root/drivers/hid
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@mail.by>2009-06-23 15:32:19 +0200
committerJiri Kosina <jkosina@suse.cz>2009-07-23 01:28:00 +0200
commit8b424887b603e953af7238fef96629424dc915cb (patch)
treead83ae7d53c0c20bd082ec3e71bba35f98401c9d /drivers/hid
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/hid')
-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)
setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid);
spin_lock_init(&usbhid->lock);
- spin_lock_init(&usbhid->lock);
usbhid->intf = intf;
usbhid->ifnum = interface->desc.bInterfaceNumber;