]> git.baikalelectronics.ru Git - kernel.git/commit
USB: WUSBCORE: Use usb_init_urb instead of creating the URB manually
authorThomas Pugliese <thomas.pugliese@gmail.com>
Thu, 15 Aug 2013 19:37:43 +0000 (14:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 00:36:27 +0000 (17:36 -0700)
commit9639a7eb369c81c069aff169327244d97f147b77
tree8970af4cfc9e4d4d3c44655ac8f50803a2bd3f80
parentc9b555a2cb6df38aaca6479088866f4075edf07b
USB: WUSBCORE: Use usb_init_urb instead of creating the URB manually

In wa_seg_init, use usb_init_urb to init the URB object contained in the
transfer segment instead of initializing it manually.  Use kmalloc to
allocate the memory for segment instead of kzalloc and then use memset
to set the non-URB portion of the transfer segment struct to 0 since
that was already done by usb_init_urb.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-xfer.c