summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorLi kunyu <kunyu@nfschina.com>2024-04-17 10:28:07 +0200
committerChuck Lever <chuck.lever@oracle.com>2024-05-06 15:07:20 +0200
commit03b0036f452d244b6bfeab3973e9e57e8eac9c04 (patch)
tree6390145c9f3213377207eb3d43f66eaf02dbf36a /fs/lockd
parentnfsd: don't create nfsv4recoverydir in nfsdfs when not used. (diff)
downloadlinux-03b0036f452d244b6bfeab3973e9e57e8eac9c04.tar.xz
linux-03b0036f452d244b6bfeab3973e9e57e8eac9c04.zip
lockd: host: Remove unnecessary statements'host = NULL;'
In 'nlm_alloc_host', the host has already been assigned a value of NULL when defined, so 'host=NULL;' Can be deleted. Signed-off-by: Li kunyu <kunyu@nfschina.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/host.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 127a728fcbc8..c11516801784 100644
--- a/fs/lockd/host.c
+++ b/fs/lockd/host.c
@@ -117,7 +117,6 @@ static struct nlm_host *nlm_alloc_host(struct nlm_lookup_host_info *ni,
if (nsm != NULL)
refcount_inc(&nsm->sm_count);
else {
- host = NULL;
nsm = nsm_get_handle(ni->net, ni->sap, ni->salen,
ni->hostname, ni->hostname_len);
if (unlikely(nsm == NULL)) {