aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-03-28 15:05:18 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-11 13:22:31 +0300
commite50bbb11fa14ef3587a0ab9f6af02749bb31dda8 (patch)
tree9fa8325fe14d29f17106c35e307d3e0aded065db /tests
parent5938e7262401dbbdeb98e8ecd9d1e81a2b3207f9 (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/integrity/integck.c2
1 files changed, 0 insertions, 2 deletions
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;