app/compress-perf: fix improper use of negative value
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Mon, 20 May 2019 13:26:03 +0000 (15:26 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 12:52:25 +0000 (14:52 +0200)
commite378bd76de1689b92cc5e7c45b59b9a274310553
tree617cd82ce9681ba666f15f6f08ae262ae39a4dff
parentabdb798ae22ee4374e9152580f22ff5fb42193a0
app/compress-perf: fix improper use of negative value

test_data->input_data_sz is passed to a parameter that
cannot be negative.

Coverity issue: 328504
Fixes: b68a82425da4 ("app/compress-perf: add performance measurement")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
app/test-compress-perf/main.c