NTFS: Remove checks for NULL before calling kfree() since kfree() does the

checking itself.  (Jesper Juhl)

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
This commit is contained in:
Jesper Juhl
2005-04-04 14:59:56 +01:00
committed by Anton Altaparmakov
parent 53d59aad93
commit 251c8427c9
4 changed files with 8 additions and 12 deletions

View File

@@ -153,8 +153,7 @@ static struct dentry *ntfs_lookup(struct inode *dir_ino, struct dentry *dent,
ntfs_error(vol->sb, "ntfs_iget(0x%lx) failed with "
"error code %li.", dent_ino,
PTR_ERR(dent_inode));
if (name)
kfree(name);
kfree(name);
/* Return the error code. */
return (struct dentry *)dent_inode;
}