projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c91fa3
)
fs: nfs: sysfs: Remove NULL check before kfree
author
Saurav Girepunje
<saurav.girepunje@gmail.com>
Tue, 29 Oct 2019 09:25:22 +0000
(14:55 +0530)
committer
Trond Myklebust
<trond.myklebust@hammerspace.com>
Mon, 18 Nov 2019 09:38:04 +0000
(10:38 +0100)
Remove NULL check before kfree, NULL check is taken care
on kfree.
Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/sysfs.c
patch
|
blob
|
history
diff --git
a/fs/nfs/sysfs.c
b/fs/nfs/sysfs.c
index 4f3390b202397b96e2df98daed21597135790ac0..c489496b56594707707dd817bb2bf408c38d73e1 100644
(file)
--- a/
fs/nfs/sysfs.c
+++ b/
fs/nfs/sysfs.c
@@
-121,8
+121,7
@@
static void nfs_netns_client_release(struct kobject *kobj)
struct nfs_netns_client,
kobject);
- if (c->identifier)
- kfree(c->identifier);
+ kfree(c->identifier);
kfree(c);
}