lockd: host: Remove unnecessary statements'host = NULL;'

JIRA: https://issues.redhat.com/browse/RHEL-59704

commit 03b0036f452d244b6bfeab3973e9e57e8eac9c04
Author: Li kunyu <kunyu@nfschina.com>
Date:   Wed Apr 17 16:28:07 2024 +0800

    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>

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
This commit is contained in:
Scott Mayhew 2024-09-23 16:33:04 -04:00
parent 75b019aaa3
commit 411a1fe5be
1 changed files with 0 additions and 1 deletions

View File

@ -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)) {