summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorSaurav Girepunje <saurav.girepunje@gmail.com>2019-10-29 10:25:22 +0100
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-11-18 10:38:04 +0100
commit0e96322b241cec8e8adf6cea70dc116d614f4add (patch)
tree9617fc7be5bf7fadabe49adcc2761d2ae9771d47 /fs/nfs
parentNFS: remove unneeded semicolon (diff)
downloadlinux-0e96322b241cec8e8adf6cea70dc116d614f4add.tar.xz
linux-0e96322b241cec8e8adf6cea70dc116d614f4add.zip
fs: nfs: sysfs: Remove NULL check before kfree
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/sysfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c
index 4f3390b20239..c489496b5659 100644
--- 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);
}