projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
900485d
)
t/dedupe: fix bogus items NULL compare
author
Jens Axboe
<axboe@fb.com>
Wed, 15 Oct 2014 01:54:21 +0000
(19:54 -0600)
committer
Jens Axboe
<axboe@fb.com>
Wed, 15 Oct 2014 01:54:21 +0000
(19:54 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
t/dedupe.c
patch
|
blob
|
blame
|
history
diff --git
a/t/dedupe.c
b/t/dedupe.c
index 030b4fc9d00f167b2d0eea363f03e73fdb469060..b43b6773ea7a455eedcd096ad3e610659401992e 100644
(file)
--- 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);
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++;
crc_buf(thisptr, items[i].hash);
offset += blocksize;
nitems++;