Skip to content

Commit 03b0036

Browse files
likunyurchucklever
authored andcommitted
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>
1 parent 0770249 commit 03b0036

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/lockd/host.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ static struct nlm_host *nlm_alloc_host(struct nlm_lookup_host_info *ni,
117117
if (nsm != NULL)
118118
refcount_inc(&nsm->sm_count);
119119
else {
120-
host = NULL;
121120
nsm = nsm_get_handle(ni->net, ni->sap, ni->salen,
122121
ni->hostname, ni->hostname_len);
123122
if (unlikely(nsm == NULL)) {

0 commit comments

Comments
 (0)