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>
This commit is contained in:
committed by
Trond Myklebust
parent
9c91fa36b6
commit
0e96322b24
@@ -121,8 +121,7 @@ static void nfs_netns_client_release(struct kobject *kobj)
|
|||||||
struct nfs_netns_client,
|
struct nfs_netns_client,
|
||||||
kobject);
|
kobject);
|
||||||
|
|
||||||
if (c->identifier)
|
kfree(c->identifier);
|
||||||
kfree(c->identifier);
|
|
||||||
kfree(c);
|
kfree(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user