staging: gdm72xx: use kzalloc to allocate usb_tx structure
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 25 Aug 2012 21:22:35 +0000 (02:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:16:22 +0000 (11:16 -0700)
commit07ad99c9e32173852997523eb920950902563941
tree67e1032da28cc8398b4948e2692f6c3f0480d4b9
parent8f8b77bfdce811acbcf2248219a7aab5f92de938
staging: gdm72xx: use kzalloc to allocate usb_tx structure

the code under alloc_tx_struct does the allocation of usb_tx structure
using kmalloc, and memsets the allocated pointer, instead we can
directly use kzalloc so that the allocated memory is set with
zeros

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_sdio.c
drivers/staging/gdm72xx/gdm_usb.c