UPSTREAM: 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)
committerGerrit <chrome-bot@google.com>
Fri, 7 Sep 2012 04:56:27 +0000 (21:56 -0700)
commit25b252351bc4cca83f175ea856224d4df7f184e1
tree6fe3617fa3fa7553b21c61726785524c27469d6f
parent93440c9a4db3ce98a2a48e5ac23d32dd86eafe5f
UPSTREAM: 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>
(cherry picked from commit 07ad99c9e32173852997523eb920950902563941)

Change-Id: I623dd5512b116924c7a5fbaefbbd26296a14cdab
Reviewed-on: https://gerrit.chromium.org/gerrit/32489
Reviewed-by: Olof Johansson <olofj@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
drivers/staging/gdm72xx/gdm_sdio.c
drivers/staging/gdm72xx/gdm_usb.c