staging: gdm72xx: simplify alloc_tx_struct and alloc_rx_struct
authorBen Chan <benchan@chromium.org>
Wed, 12 Sep 2012 18:43:41 +0000 (11:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 03:15:41 +0000 (20:15 -0700)
commit129575f2a8958a1e90780b0d5b80702bb45b5aac
treee79b0a0f7f5cd7c6051893cc08bfc1c7d2816a74
parentb37c1aeed89062a82da9bf78c83db0328d08e95d
staging: gdm72xx: simplify alloc_tx_struct and alloc_rx_struct

This patch simplifies alloc_tx_struct and alloc_rx_struct in gdm_sdio.c
and gdm_usb.c by replacing kmalloc+memset with kzalloc and reorganizing
the code.

Signed-off-by: Ben Chan <benchan@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_sdio.c
drivers/staging/gdm72xx/gdm_usb.c