]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3868a09ed140ec800e9c678d34021a056fc56f9d
treeee154eda94391f8985333ded7146eacd10920c38
parente1fc2834c9e349bb9202fb7d0d0e1fdb1f0c1c03
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