Re: [PATCH] HID: Avoid double spin_lock_init on usbhid->lock (resend)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Jun 2009, Sergey Senozhatsky wrote:

> Trivial: Avoid double spin_lock_init on usbhid->lock.
> 
> Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxx>
> ---
> diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
> index 76c4bbe..c654b89 100644
> --- a/drivers/hid/usbhid/hid-core.c
> +++ b/drivers/hid/usbhid/hid-core.c
> @@ -987,7 +987,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;

Hi Sergey,

I have applied the patch. Your mail hasn't reached my @suse.cz address 
though, I have digged it from linux-input. Is your SMTP server or some 
blacklist?

Thanks,

-- 
Jiri Kosina
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux