blktrace: Pass a positive error code to td_verror()
authorBart Van Assche <bvanassche@acm.org>
Sat, 11 Jan 2020 23:58:26 +0000 (15:58 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sun, 12 Jan 2020 02:17:37 +0000 (18:17 -0800)
commit874a61d067958c77100f9c994de133fdd70c566d
tree9b106ab57ea8c9fa94bfc908e49acc972e1afe7f
parentb7ed2a862ddafa7dbaa6299ee8633b6f8221e283
blktrace: Pass a positive error code to td_verror()

This patch fixes the following Coverity complaint:

CID 183980 (#1-2 of 2): Argument cannot be negative (NEGATIVE_RETURNS)
13. negative_returns: ret is passed to a parameter that cannot be negative.

Fixes: e28875637094 ("blktrace support: speedup reading of data")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
blktrace.c