From mboxrd@z Thu Jan 1 00:00:00 1970 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 7E204C4332F for ; Mon, 3 Oct 2022 21:14:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229802AbiJCVO3 (ORCPT ); Mon, 3 Oct 2022 17:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiJCVMq (ORCPT ); Mon, 3 Oct 2022 17:12:46 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F05322BFB for ; Mon, 3 Oct 2022 14:07:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5BBD3B81122 for ; Mon, 3 Oct 2022 21:07:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A07AC433D7; Mon, 3 Oct 2022 21:07:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1664831269; bh=Aw2HPDYQkl/kzVPW/BWHdu5Wj7FCeabfQYG6HEfMpCM=; h=Date:To:From:Subject:From; b=k5gyuXtBkqMhIqNNcr1CHPmygqTN11zG/KpU/Y4zZpo4OmgVGIHQv4xWL+2cDBgxw w8w3SvOJjlZRbLp90DDRZYYA/aixMAdtlrw2SDg+OM95mVQ0dTJGTuTCyfrA1vq8+a wCchNLvYzte2OmUVu14FcGiA7s0VP93Bd2OceRTI= Date: Mon, 03 Oct 2022 14:07:48 -0700 To: mm-commits@vger.kernel.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, xupengfei@nfschina.com, akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] mm-hugetlb-remove-unnecessary-null-values-from-pointer.patch removed from -mm tree Message-Id: <20221003210749.1A07AC433D7@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The quilt patch titled Subject: mm/hugetlb: remove unnecessary 'NULL' values from pointer has been removed from the -mm tree. Its filename was mm-hugetlb-remove-unnecessary-null-values-from-pointer.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: XU pengfei Subject: mm/hugetlb: remove unnecessary 'NULL' values from pointer Date: Wed, 14 Sep 2022 09:21:14 +0800 Pointer variables allocate memory first, and then judge. There is no need to initialize the assignment. Link: https://lkml.kernel.org/r/20220914012113.6271-1-xupengfei@nfschina.com Signed-off-by: XU pengfei Reviewed-by: Muchun Song Cc: Mike Kravetz Signed-off-by: Andrew Morton --- mm/hugetlb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/mm/hugetlb.c~mm-hugetlb-remove-unnecessary-null-values-from-pointer +++ a/mm/hugetlb.c @@ -258,7 +258,7 @@ static inline struct hugepage_subpool *s static struct file_region * get_file_region_entry_from_cache(struct resv_map *resv, long from, long to) { - struct file_region *nrg = NULL; + struct file_region *nrg; VM_BUG_ON(resv->region_cache_count <= 0); @@ -340,7 +340,7 @@ static bool has_same_uncharge_info(struc static void coalesce_file_region(struct resv_map *resv, struct file_region *rg) { - struct file_region *nrg = NULL, *prg = NULL; + struct file_region *nrg, *prg; prg = list_prev_entry(rg, link); if (&prg->link != &resv->regions && prg->to == rg->from && _ Patches currently in -mm which might be from xupengfei@nfschina.com are