diff options
author | Saurav Girepunje <saurav.girepunje@gmail.com> | 2019-10-29 12:25:22 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-11-18 12:38:04 +0300 |
commit | 0e96322b241cec8e8adf6cea70dc116d614f4add (patch) | |
tree | 9617fc7be5bf7fadabe49adcc2761d2ae9771d47 /fs/nfs | |
parent | 9c91fa36b6179859aca6317b23933ffbc4f76940 (diff) | |
download | linux-0e96322b241cec8e8adf6cea70dc116d614f4add.tar.xz |
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.c | 3 |
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); } |