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:
parent
9c91fa36b6
commit
0e96322b24
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue