]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0a07a386b644f91d6c88ebdaf30e7f6b71ca1349
tree7255b2e6232e918a8eb6baa34c5a8f70245caa37
parent68bb9487ad604888a66530f5cdd1496f80f6aa58
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