summaryrefslogtreecommitdiff
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-08-15 14:37:43 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-15 17:36:27 -0700
commit66591015d88d0b7fc88da79e2054830094ace4c9 (patch)
tree8970af4cfc9e4d4d3c44655ac8f50803a2bd3f80 /drivers/usb/class
parent79731cbd783d3693d4b84731e3cfc79b9f828170 (diff)
downloadlinux-rt-66591015d88d0b7fc88da79e2054830094ace4c9.tar.gz
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>
Diffstat (limited to 'drivers/usb/class')
0 files changed, 0 insertions, 0 deletions