t/dedupe: fix bogus items NULL compare
[fio.git] / t / dedupe.c
index 030b4fc9d00f167b2d0eea363f03e73fdb469060..b43b6773ea7a455eedcd096ad3e610659401992e 100644 (file)
@@ -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++;