diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-02-01 18:59:56 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-02-01 13:09:21 -0700 |
commit | 57cd657b8272a66277c139e7bbdc8b86057cb415 (patch) | |
tree | a26e3482cf57f147c8d680beb5777392cfbb2f28 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ce3d5aae331fa0eb1e88199e0380f517ed0c58f6 (diff) |
io_uring: simplify do_read return parsing
do_read() returning 0 bytes read (not -EAGAIN/etc.) is not an important
enough of a case to prioritise it. Fold it into ret < 0 check, so we get
rid of an extra if and make it a bit more readable.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions