From nobody Sun Apr 12 00:53:05 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75F4DC19F2A for ; Wed, 3 Aug 2022 06:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237249AbiHCGlo (ORCPT ); Wed, 3 Aug 2022 02:41:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233734AbiHCGlb (ORCPT ); Wed, 3 Aug 2022 02:41:31 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1401A39BBC for ; Tue, 2 Aug 2022 23:41:29 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id A0B491E80D25; Wed, 3 Aug 2022 14:40:37 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cWoKKGcMRh8W; Wed, 3 Aug 2022 14:40:35 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 039B71E80CEA; Wed, 3 Aug 2022 14:40:35 +0800 (CST) From: Li kunyu To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Li kunyu Subject: [PATCH] page_alloc: remove inactive initialization Date: Wed, 3 Aug 2022 14:41:18 +0800 Message-Id: <20220803064118.3664-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The allocation address of the table pointer variable is first performed in the function, no initialization assignment is required, and no invalid pointer will appear. Signed-off-by: Li kunyu --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b0bcab50f0a3..38d559e8aee6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -8885,7 +8885,7 @@ void *__init alloc_large_system_hash(const char *tabl= ename, { unsigned long long max =3D high_limit; unsigned long log2qty, size; - void *table =3D NULL; + void *table; gfp_t gfp_flags; bool virt; bool huge; --=20 2.18.2