Skip to content

Commit 0e96322

Browse files
Saurav-GirepunjeTrond Myklebust
authored andcommitted
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent 9c91fa3 commit 0e96322

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/nfs/sysfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ static void nfs_netns_client_release(struct kobject *kobj)
121121
struct nfs_netns_client,
122122
kobject);
123123

124-
if (c->identifier)
125-
kfree(c->identifier);
124+
kfree(c->identifier);
126125
kfree(c);
127126
}
128127

0 commit comments

Comments
 (0)