Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7563715rwn; Wed, 14 Sep 2022 00:12:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR5vxzgM6oKjtRsbYF1u4+4PeOhtgjDu/IwQeGRVVIuUE+N3GuWR7pgaWPIBGQJhWk3jQiUM X-Received: by 2002:a50:fc93:0:b0:44d:c809:8158 with SMTP id f19-20020a50fc93000000b0044dc8098158mr30227783edq.365.1663139562122; Wed, 14 Sep 2022 00:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663139562; cv=none; d=google.com; s=arc-20160816; b=ZP9K5kS6xVZrZ9vuWkMrEY9ZjlHwxRwYDxyGI8A2NZ/k5o4mFI6psupWWj1lpW608H 3Uk9643hRh4Pr2UPomGm3/r0kWFZQeqhXMPMJ0AwQeqDFmDSn/iv51RzdTreK0URhu+c WFaf01VP6TmZdbqZWjEnVZpM2UkAKHoN20EIvpjgJWw3DRHInRSlXaeCZcMSj3RHGEKh Wp+mFHscuD0A0ngTo4W9jOS1HtS9ornt3eIfaRvnGwmV2c3AkwxVJRnf2zBxnuQHctsS RbGgtuc5HQOZHP2fXpEEIZvZwHoJ/WmP0k5dGvxxV80s9cIFxLHBZIpN0BPZ6vAJ+uKi 0MEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=EdcxFVPfL3oNvUbsts76ibZFxG9H40u/DZs2oEJmCVQ=; b=w7uhgxPLEQEIUKW5T4cC19Ohk9Pd89DKQrAfrTdt5gdXGHceG8UTysGWUZ4U4XV/KE Qt5Uo+Sv8kvRJBwJeOHlcGu85LyucThfk80FRipN6CV05IyOcW8eCUFpUBwYKKBx2tj+ Wk4keth0uUpx6EsEFK1PNIxHrwNKI3yLEB+CRuMLHKixQOvRTOJQI9m3Ja2RKVdN7tw6 dQleu0e9oO0EoepDHQRdYOttUTt/I/satsJ3TDBq2rwuEMTxdSxzL9jMdkXWItTkxpFt lYhZNQdWrn2GgLvA1KbYjbMo/E7La9bGSX6L1L9AweQJbXgwn/Wjvw2SxpbxWuTGt9eE z00A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cuxhsptt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa33-20020a17090786a100b0073d888f8c4fsi11939644ejc.236.2022.09.14.00.12.15; Wed, 14 Sep 2022 00:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=cuxhsptt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229599AbiINGwQ (ORCPT + 99 others); Wed, 14 Sep 2022 02:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiINGwP (ORCPT ); Wed, 14 Sep 2022 02:52:15 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF66872682 for ; Tue, 13 Sep 2022 23:52:11 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663138328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EdcxFVPfL3oNvUbsts76ibZFxG9H40u/DZs2oEJmCVQ=; b=cuxhsptteKa/Nl693vjyLcG8c5CWcdmBhSrzS84Nzc+mCdRjPQdjYL5elpfmwksIgsHdBI LYLI6nRAAI/ytLRypX2h+sJioeGsa3ob3TI3my7tqVW6AHmRF1Qsi+egTZfwNTkycoNv+v n8KsqMKlsbQ3TrC6bD90gMxEvl332+s= MIME-Version: 1.0 Subject: Re: [PATCH 1/1] mm/hugetlb: Remove unnecessary 'NULL' values from Pointer X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20220914012113.6271-1-xupengfei@nfschina.com> Date: Wed, 14 Sep 2022 14:52:04 +0800 Cc: Mike Kravetz , Muchun Song , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <2866AFF1-FDA3-4A44-8542-3D74228577DC@linux.dev> References: <20220914012113.6271-1-xupengfei@nfschina.com> To: XU pengfei X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Sep 14, 2022, at 09:21, XU pengfei wrote: > > > Pointer variables allocate memory first, and then judge. There is no > need to initialize the assignment. > > Signed-off-by: XU pengfei Reviewed-by: Muchun Song Thanks.