Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp467150lqb; Wed, 17 Apr 2024 01:28:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+eTYYUVn/jpGXGFafYst9C9HJG6obBy40DPP2ahRwPtgh0fPZmLV0SEGV4LPEjKCAOoNnG1MBt5Ymg0rAP5Noghet2NWhSljsvMtmsQ== X-Google-Smtp-Source: AGHT+IHM7GcGnmOEDjSaHOlK6GhEPKDx6HZxp99Q2Yopc4eCErwannyjprFiCgl2jFx5NjjAItjc X-Received: by 2002:a0c:eace:0:b0:69b:b549:b2c5 with SMTP id y14-20020a0ceace000000b0069bb549b2c5mr6750499qvp.19.1713342530210; Wed, 17 Apr 2024 01:28:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713342530; cv=pass; d=google.com; s=arc-20160816; b=hjUbvL14j/MO7PXL9krgIaFXYgGx+rrkT/u9FBop+0VkImRlCq8D+70/3A71aArnM0 O7/ffxTjM/TS9BzUTtl83SDs2/PNyMRAt1d9uPnf0oCK6M/Du5YqRFwAgfZFsNz6p1ps MjvCn0eQtIgCcpX5gf1SY4ZrokQAJ8261bKKNQD8Kn3yyKJ/Aa7VUJ8UnNT+vv6MvtmF r1Ny7x+bZnL+jdQqpukR2Cle1e6JTmWV2Uk25KN7b2O/WX3JRFZJnnkA888wrieRC8i2 fB3UFmMdkyBcpGuv86phXCZa3stokykG3UlMjw2em2qUIMQuRIh/p93Y1V4GNV4IKDBQ +gPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=vR/zZyYlP34DT6am+hs0r+lgELGA1eAzER82mugNfMU=; fh=0pWYKNtxoDemmrVm6eXuUFWlUFimlVHNMTjvi6W6O84=; b=O66Uo427qGTQI7f1wYBgehBfjDJlZI2LoQ5lWM39xIekkv5XliCniKqVegpbwdbqyj g6V8Tt2jyeShygsbxCMja6eEeYdWtAHdquY44lvxAMUcehHlG9MpILK+o/w1lJG1hZea x9yG7ryxMU3GOBwML4qrBkbSxBTuM2idzrUp6xM+7xEE3TIOzENL271MSpSRkvdqMIpg apacKKS+Gq1z4j151jZTOKlqW6V59BUo0vOEfd0kmiy121MzS4sNUctjOuBocxh8owWv FStMqFFcbQM/ukzTNoPq/fUSFTBB5ICgJqNEePw6EP4Dsdy2gqbS5KPJhbeJ7HDfMTcc MzTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-nfs+bounces-2867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2867-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d9-20020ad450a9000000b0069b3cff59afsi14014309qvq.329.2024.04.17.01.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 01:28:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-2867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-nfs+bounces-2867-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-2867-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 97EC61C20B9D for ; Wed, 17 Apr 2024 08:28:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1894E7E763; Wed, 17 Apr 2024 08:28:46 +0000 (UTC) X-Original-To: linux-nfs@vger.kernel.org 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-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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_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)) { -- 2.18.2