diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-02-21 15:15:25 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-21 16:33:39 -0800 |
commit | 398cd5d9cc5dde764186d3302125692f27f195c3 (patch) | |
tree | 6c17d69ed4a6a51da3549160929e839200d6a121 /subsurface-core/device.h | |
parent | 1f7f3c4af59cea6a76a68bdfea95c3ae4f86a615 (diff) | |
download | subsurface-398cd5d9cc5dde764186d3302125692f27f195c3.tar.gz |
pressure interpolation: simplify code
Getting rid of the pointless always-zero pressure now makes it obvious
how some of the remaining code can just be removed too: there is no
point in re-initializing the pressure_time entries to zero at the
segment start, because they started out zero and we just checked that we
don't do anything to them before we hit the segment start.
Similarly, now that the silly pressure testing is gone, it is obvious
that the code for "i < cur" and "i == curr" cases is identical, and the
two cases can just be collapsed.
Signed-off-by: Linus Torvalds <torvalds@ linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/device.h')
0 files changed, 0 insertions, 0 deletions