nfs: Remove redundant null checks before kfree
authorYushan Zhou <katrinzhou@tencent.com>
Tue, 18 Oct 2022 04:07:08 +0000 (12:07 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 27 Oct 2022 19:52:10 +0000 (15:52 -0400)
commit121affdf8a940555ceef6ab10a709030e52a4f91
treec26492ec3c04bb081589c84b6f9808e710c7ea5b
parent247f34f7b80357943234f93f247a1ae6b6c3a740
nfs: Remove redundant null checks before kfree

Fix the following coccicheck warning:
fs/nfs/dir.c:2494:2-7: WARNING:
NULL check before some freeing functions is not needed.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c