]> git.karo-electronics.de Git - linux-beck.git/commit
staging: vt6656: rxtx.c: s_uGetDataDuration remove First Frag or Mid Frag dead code.
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 7 Aug 2013 20:26:12 +0000 (21:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 22:26:51 +0000 (15:26 -0700)
commit0005cb008c16df6c09df0aa0bb155df97dd356b4
tree1b4684a5efa6bcdd1c3bd0d7b9a974181e948f83
parenta0c516cbfc7452c8cbd564525fef66d9f20b46d1
staging: vt6656: rxtx.c: s_uGetDataDuration remove First Frag or Mid Frag dead code.

The driver always calls s_uGetDataDuration with;
uFragIdx = 0, cbLastFragmentSize = 0 and uMACfragNum = 1

uFragIdx == (uMACfragNum-1) is always true and bLastFrag = 1.

Remove dead First Frag or Mid Frag if/else and variables.

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