From e50bbb11fa14ef3587a0ab9f6af02749bb31dda8 Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Date: Mon, 28 Mar 2011 15:05:18 +0300
Subject: fs-tests: integck: remove unnecessary check

The 'link_new()' function has only one user, and the user checks
that the third 'file' argument is non NULL, so remove this check
from 'link_new()'. Let's be consistent and assume the 3rd argument
is never NULL, just like the first and the second ones.

This is just a minor improvement.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
---
 tests/fs-tests/integrity/integck.c | 2 --
 1 file changed, 2 deletions(-)

(limited to 'tests/fs-tests/integrity')

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;
-- 
cgit v1.2.3