diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 1801b20..155b619 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -425,8 +425,6 @@ static void link_new(struct dir_info *parent, const char *name,
 	char *path, *target;
 	int ret;
 
-	if (!file)
-		return;
 	entry = file->links;
 	if (!entry)
 		return;
