Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b424887 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Jiri Kosina
Browse files

HID: Avoid double spin_lock_init on usbhid->lock



Avoid double spin_lock_init on usbhid->lock.

Signed-off-by: default avatarSergey Senozhatsky <sergey.senozhatsky@mail.by>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent fd30ea8c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;