Re: NFS: remove the redundant check when kfree an object in nfs_netns_client_release

2019-09-04 Thread zhong jiang
On 2019/9/4 23:11, Markus Elfring wrote: >> kfree has taken the null check in account. > I suggest to take another look at a similar patch. How to fast find out the similar patch. Search the key word doesn't work well. Thanks, zhong jiang > NFS: fix ifnullfree.cocci warnings > https://lkml.org/lkm

Re: NFS: remove the redundant check when kfree an object in nfs_netns_client_release

2019-09-04 Thread Markus Elfring
> kfree has taken the null check in account. I suggest to take another look at a similar patch. NFS: fix ifnullfree.cocci warnings https://lkml.org/lkml/2019/7/7/73 https://lore.kernel.org/patchwork/patch/1098005/ https://lore.kernel.org/r/alpine.DEB.2.21.1907071844310.2521@hadrien/ Regards, Mar

[PATCH] NFS: remove the redundant check when kfree an object in nfs_netns_client_release

2019-09-02 Thread zhong jiang
kfree has taken the null check in account. hence it is unnecessary to add the null check before kfree the object. Just remove it. Signed-off-by: zhong jiang --- fs/nfs/sysfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfs/sysfs.c b/fs/nfs/sysfs.c index 4f3390b..c48