Skip to content

Commit

Permalink
HID: Avoid double spin_lock_init on usbhid->lock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sergey Senozhatsky authored and Jiri Kosina committed Jul 22, 2009
1 parent fd30ea8 commit 8b42488
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/hid/usbhid/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,6 @@ static int usbhid_start(struct hid_device *hid)
INIT_WORK(&usbhid->restart_work, __usbhid_restart_queues);
setup_timer(&usbhid->io_retry, hid_retry_timeout, (unsigned long) hid);

spin_lock_init(&usbhid->lock);
spin_lock_init(&usbhid->lock);

usbhid->intf = intf;
Expand Down

0 comments on commit 8b42488

Please sign in to comment.