From: Jens Axboe Date: Wed, 15 Oct 2014 01:54:21 +0000 (-0600) Subject: t/dedupe: fix bogus items NULL compare X-Git-Tag: fio-2.1.14~55 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=356c552d4654dba6ebc8461228ab0aa728d304c2;p=fio.git t/dedupe: fix bogus items NULL compare Signed-off-by: Jens Axboe --- diff --git a/t/dedupe.c b/t/dedupe.c index 030b4fc9..b43b6773 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -294,8 +294,7 @@ static int do_work(struct worker_thread *thread, void *buf) for (i = 0; i < nblocks; i++) { void *thisptr = buf + (i * blocksize); - if (items) - items[i].offset = offset; + items[i].offset = offset; crc_buf(thisptr, items[i].hash); offset += blocksize; nitems++;