staging: gdm724x: cleanup alloc_tx_sdu_struct()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Feb 2014 12:18:10 +0000 (15:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:16:56 +0000 (11:16 -0800)
commit75bc5fad154590e8dda5772669cf9b6f44bb873b
tree213e3b50c698f1c569468f729e326856e6caddd0
parenta469fe1ab88e19cad0995504973c5400cf24bb17
staging: gdm724x: cleanup alloc_tx_sdu_struct()

The kfree(t_sdu->buf) sets off a private static checker warning because
"t_sdu->buf" is always NULL.

This function just allocates two pointers so we can re-write it to be
simpler.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_usb.c