projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef3b9af
)
btrfs: remove redundant null check in btrfs_dentry_release()
author
Daeseok Youn
<daeseok.youn@gmail.com>
Mon, 14 Apr 2014 06:37:02 +0000
(15:37 +0900)
committer
Chris Mason
<clm@fb.com>
Tue, 10 Jun 2014 00:20:31 +0000
(17:20 -0700)
It doesn't need to check NULL for kfree()
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 5c0def8dd761b41f21964eb5432044636ab873b2..36c13e391ae3fe5c4a47c0b842f0c6c6f2a53e7f 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-5168,8
+5168,7
@@
static int btrfs_dentry_delete(const struct dentry *dentry)
static void btrfs_dentry_release(struct dentry *dentry)
{
- if (dentry->d_fsdata)
- kfree(dentry->d_fsdata);
+ kfree(dentry->d_fsdata);
}
static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,