diff options
author | 2017-12-06 08:53:33 +0100 | |
---|---|---|
committer | 2018-03-26 16:12:25 +0200 | |
commit | 152485bf76907ac7a2cc0a63b0822b23ef25da56 (patch) | |
tree | e4ea6117a3466c3b0dd253be6a9b6d8796ab9a67 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'vfio-ccw-20180305' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/vfio-ccw into features (diff) | |
download | wireguard-linux-152485bf76907ac7a2cc0a63b0822b23ef25da56.tar.xz wireguard-linux-152485bf76907ac7a2cc0a63b0822b23ef25da56.zip |
s390/qdio: simplify math in get_*_buffer_frontier()
When determining the buffer count that get_buf_states() should
be queried for, 'count' is capped at 127 buffers.
So the check
q->first_to_check == (q->first_to_check + count) % 128
can be reduced to
count == 0
This helps to emphasize that get_buf_states() is really only
called with count > 0.
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Reviewed-by: Benjamin Block <bblock@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions