diff options
author | Julian Wiedmann <jwi@linux.vnet.ibm.com> | 2017-12-06 08:53:33 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2018-03-26 16:12:25 +0200 |
commit | 152485bf76907ac7a2cc0a63b0822b23ef25da56 (patch) | |
tree | e4ea6117a3466c3b0dd253be6a9b6d8796ab9a67 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcbd41da3b0a8a3e0f8457bb545a32f5ca3c81f5 (diff) |
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