X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filehash.c;h=71ec7b18c3345cfabdd2a7f48c0ce20c1c2579d3;hb=f7942acdc23a4ee837ef30834e1d2cb1fc6d0afe;hp=b55ab7340e68065de4bcb6eb6e8f39111d38886e;hpb=d3d378218e9e03411749b65451b32d7a7466ff61;p=fio.git diff --git a/filehash.c b/filehash.c index b55ab734..71ec7b18 100644 --- a/filehash.c +++ b/filehash.c @@ -60,10 +60,8 @@ static struct fio_file *__lookup_file_hash(const char *name) if (!f->file_name) continue; - if (!strcmp(f->file_name, name)) { - assert(f->fd != -1); + if (!strcmp(f->file_name, name)) return f; - } } return NULL;