From nobody Mon Feb 9 15:10:06 2026 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id C18A247A7F for ; Mon, 15 Apr 2024 10:20:23 +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=1713176429; cv=none; b=d76hehkBBMnjQdA11BhtMrbq/CtacsyGvlnS2SMEopKPghnXuKATwhi5aawnCGMSOiOpzVyvFaJyMzZrMrXXETneRPtBzP6Ov1mlC3WfDF6UIpIIgHHpQbl8rQHwnSi0HSTJrNTvuKorG3+bN9hNPD8rQpKyXoo1tISPT0eU2a0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713176429; c=relaxed/simple; bh=3yLCoqFgS93V9qcg7dJGqj52LfDzK5camlXV1LZWd6Y=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Zd8Z3kFogPjC1ZHDKrz6Hh/iAPXZNNwGkxOmsSV+qkqbxDYgFEvFEm/qfba1J/WetgvT0V4rMQ8KRMevj4fQRHQ69weyTrDth/cIeyhHfVAZu2BUge7HvT4T5KPDS8a/l6R+i4FRPok0snmL2E7mdokEg6b+ZfHzyOBTG10NB0g= 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 75A91601A216C; Mon, 15 Apr 2024 18:20:16 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: gregkh@linuxfoundation.org, tj@kernel.org Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?kernfs:=20mount:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20knparent?= Date: Mon, 15 Apr 2024 18:20:09 +0800 Message-Id: <20240415102009.9926-1-zeming@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" knparent is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming Acked-by: Tejun Heo --- fs/kernfs/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/kernfs/mount.c b/fs/kernfs/mount.c index 0c93cad0f0aca..d38bc7aeb598c 100644 --- a/fs/kernfs/mount.c +++ b/fs/kernfs/mount.c @@ -206,7 +206,7 @@ struct dentry *kernfs_node_dentry(struct kernfs_node *k= n, struct super_block *sb) { struct dentry *dentry; - struct kernfs_node *knparent =3D NULL; + struct kernfs_node *knparent; =20 BUG_ON(sb->s_op !=3D &kernfs_sops); =20 --=20 2.18.2