From 251c8427c9c418674fc3c04a11de95dc3661b560 Mon Sep 17 00:00:00 2001 From: Jesper Juhl Date: Mon, 4 Apr 2005 14:59:56 +0100 Subject: NTFS: Remove checks for NULL before calling kfree() since kfree() does the checking itself. (Jesper Juhl) Signed-off-by: Jesper Juhl Signed-off-by: Anton Altaparmakov --- fs/ntfs/namei.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fs/ntfs/namei.c') diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c index d261e25bd9b..351dbc3b6e4 100644 --- a/fs/ntfs/namei.c +++ b/fs/ntfs/namei.c @@ -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; } -- cgit v1.2.3