From patchwork Fri Apr 8 15:16:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [4/6] fs-tests: integck: remove unnecessary check Date: Fri, 08 Apr 2011 05:16:48 -0000 From: Artem Bityutskiy X-Patchwork-Id: 90382 Message-Id: <1302275810-12632-5-git-send-email-dedekind1@gmail.com> To: MTD list Cc: Adrian Hunter From: Artem Bityutskiy 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 --- tests/fs-tests/integrity/integck.c | 2 -- 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;