From: Li kunyu Date: Wed, 17 Apr 2024 08:28:07 +0000 (+0800) Subject: lockd: host: Remove unnecessary statements'host = NULL;' X-Git-Tag: v6.10-rc1~108^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03b0036f452d244b6bfeab3973e9e57e8eac9c04;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- diff --git a/fs/lockd/host.c b/fs/lockd/host.c index 127a728fcbc81..c115168017845 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)) {