]> Pileus Git - ~andy/linux/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)
commit66591015d88d0b7fc88da79e2054830094ace4c9
tree8970af4cfc9e4d4d3c44655ac8f50803a2bd3f80
parent79731cbd783d3693d4b84731e3cfc79b9f828170
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