X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=filehash.c;h=71ec7b18c3345cfabdd2a7f48c0ce20c1c2579d3;hb=2d8c2709dc067aabdeab8bc1eea1992d9d802375;hp=b55ab7340e68065de4bcb6eb6e8f39111d38886e;hpb=971caeb177d3bc4f65fa31381bbfb83710bfc690;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;