From nobody Fri May 17 06:43:25 2024 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id 7CEA371745; Wed, 17 Apr 2024 08:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713342526; cv=none; b=SHGavc3skHPn5jli5hQgD300Gy3b5bHbFC/AvgWtSr+JctZ8CoTM3bT8eZbXGS99f2fnPfDzSjYImV6PLvimWbeC/G15qk7exakMWZGSjjY9IoDowawUXbUYMUbY1gWqc/9dpHGLWCy0fNsfNkg8vMHv9y2ltDjvSOehqngh2Dk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713342526; c=relaxed/simple; bh=iXTes1T3zb5s+wDOvBmCsD1VNFBqg7mCpl3R6vpiuIY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=ktiOAv1rMxsftEpoPCKrNnwXlRl4GXN1RTulFhuDqBDvPh9zWAITGBPXWF0YiY9PDDFHKC7bzXQVUS6ua5uoexUQfwU7qaooKCcYXEU830sQfS5p8gAtVkMxHcyi8A2CZAViqrnZUq9CB3ceg/NG9rBBpP02/Vm4lftwVQdy1j8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id E528B606187A1; Wed, 17 Apr 2024 16:28:28 +0800 (CST) X-MD-Sfrom: kunyu@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li kunyu To: chuck.lever@oracle.com, jlayton@kernel.org, neilb@suse.de, kolga@netapp.com, Dai.Ngo@oracle.com, tom@talpey.com, trond.myklebust@hammerspace.com, anna@kernel.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] =?UTF-8?q?lockd:=20host:=20Remove=20unnecessary=20stateme?= =?UTF-8?q?nts=EF=BC=87host=20=3D=20NULL;=EF=BC=87?= Date: Wed, 17 Apr 2024 16:28:07 +0800 Message-Id: <20240417082807.14178-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In 'nlm_alloc_host', the host has already been assigned a value of NULL when defined, so 'host=3DNULL;' Can be deleted. Signed-off-by: Li kunyu Reviewed-by: Jeff Layton --- fs/lockd/host.c | 1 - 1 file changed, 1 deletion(-) 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_looku= p_host_info *ni, if (nsm !=3D NULL) refcount_inc(&nsm->sm_count); else { - host =3D NULL; nsm =3D nsm_get_handle(ni->net, ni->sap, ni->salen, ni->hostname, ni->hostname_len); if (unlikely(nsm =3D=3D NULL)) { --=20 2.18.2