git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NTFS: Remove checks for NULL before calling kfree() since kfree() does the
[safe/jmp/linux-2.6]
/
fs
/
ntfs
/
namei.c
diff --git
a/fs/ntfs/namei.c
b/fs/ntfs/namei.c
index
d261e25
..
351dbc3
100644
(file)
--- 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;
}