NFS: remove redundant null pointer check before kfree
Subsystems (2)
PATCH 1/1 NFS: remove redundant null pointer check before kfree
kfree has taken null pointer check into account. so it is safe to remove the unnecessary check.
Signed-off-by Chen Wandun <[email protected]>
--- fs/nfs/sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/nfs/sysfs.c +1 -2
@@ -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); }
Signature · 1 line
2.7.4