staging: unisys: visornic - consolidate+simplify xmit watermark checks
authorTim Sell <Timothy.Sell@unisys.com>
Tue, 28 Jul 2015 16:29:11 +0000 (12:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:10:36 +0000 (16:10 -0700)
commit36927c1828c526c571973758b2d3a4bad051bc3f
treeee154eda94391f8985333ded7146eacd10920c38
parentcb84fca03d99ec1bb8d370b575aa2984b60a8374
staging: unisys: visornic - consolidate+simplify xmit watermark checks

The code that tests for high and low xmit watermarks was consolidatedand
simplified. The output behavior should be identical, with the exception
of an off-by-one error being corrected in the tests done when the counters
overflowed.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c