staging: vt6656: rxtx.c s:_uGetDataDuration simplify structure.
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 13 Aug 2013 18:59:31 +0000 (19:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 21:42:59 +0000 (14:42 -0700)
commitb02ccd5957281b7d2c364e5a34f3260961a691cb
tree7255b2e6232e918a8eb6baa34c5a8f70245caa37
parent18ee00a6e10e54e6e5ebddba7913ee5738344297
staging: vt6656: rxtx.c s:_uGetDataDuration simplify structure.

A value is only returned when bNeedAck is true.

Only when byDurType == DATADUR_B is different.

Remove switch statement and simplify with if structure.

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