]> git.karo-electronics.de Git - linux-beck.git/commit
staging: vt6656: rxtx.c: s_vGetFreeContext use single tx memset.
authorMalcolm Priestley <tvboxspy@gmail.com>
Mon, 5 Aug 2013 20:09:14 +0000 (21:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 22:01:32 +0000 (15:01 -0700)
commitc0de17e468a4a0469b6bba31a515c02b90b75edc
treea70df6d73be58cff44d3ee451af6cb1481cd9173
parenta66698110b7a286d57df023eaa6c0e50503c4d7b
staging: vt6656: rxtx.c: s_vGetFreeContext use single tx memset.

memset to 0 structure _USB_SEND_CONTEXT pContext->Data to its
size of MAX_TOTAL_SIZE_WITH_ALL_HEADERS as defined
in device.h

This removes the need for memset in the TX path.

It also allows the removal of dead structure
TX_BUFFER_CONTAINER BufferHeader;

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c