Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp221130rwi; Wed, 12 Oct 2022 19:04:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mRzKSevd+UvRWUxqLaJd4b5/vPfe7HVqdwH6DLq7lSLcOI4lwrptGXqK2d9XFNmqV8G/c X-Received: by 2002:a17:907:6e87:b0:782:2d55:f996 with SMTP id sh7-20020a1709076e8700b007822d55f996mr24644530ejc.502.1665626668927; Wed, 12 Oct 2022 19:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665626668; cv=none; d=google.com; s=arc-20160816; b=fBWcpMb/N0/KwDbEP9ll3DIAtBRJkwCxA9R2sLBrrqkiz+60WtC89Wstww4hSXMgzU +QcDRGM0hmq5rzcqUQ3gEpOnxG5IV4Lyems9YhY5KVUpZZS13D81Bs5wgSgpiSINeZtf 1d6s9Tw4vaesflkleeyuhEuowiTg2DkTz1S8Rj54f1AbGQJgM/Ln27w5h8jVX3JMcMeS BbW4whKoCmYcbQc/zuo7dVj1nfidQ0abay32OaQ0mQdLXyorek9QK5FYk51amhwY6G9r zjXl5uRRbywcyvMA3arfFIqNX4xNcrpY/7v5TvHhfEAt0QyCB9eQKx5B+5sBDqpSF11o iWmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=A5x8wdhAsf4AedPyKcPV7W2zsdmZRjimIVzXyMAW1Ng=; b=IyRk6KpOAeFtLy3lt0IwAmx7N1CvNQIN3qxB+Wpir+QQfNLyZQmYkAFkI609TQnQQm blgK5CvDrcFm8M5+BFBP1h38KOK1UjKPyKi3QBURi2M23RG28b5kMaZ691u4cpaCRlLt gJ2XUQZdn/2LHCpOi+aUtZuqB1MlxVvsaRpUQG1n53gHFL394X3EDpeyAtRcJjtpmCF4 5G3hjcRo176zhSybFFvW5C7Yv9jR6x1PhwwfazX1L14HVXyGnn6t1eDnC1c1h2bgNs+o I3HwTQK0cCUSqfeKWwSnTn+f6XTnGGYSdyp4FvSlpi5KD2IBa/YIdO8QwgUZO94Tv4nA CcZw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho35-20020a1709070ea300b0078dfd7054absi2330397ejc.544.2022.10.12.19.04.03; Wed, 12 Oct 2022 19:04:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbiJMBtY (ORCPT + 99 others); Wed, 12 Oct 2022 21:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiJMBtU (ORCPT ); Wed, 12 Oct 2022 21:49:20 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 98AF9112ABF; Wed, 12 Oct 2022 18:49:19 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id BBDEF1E80D9B; Thu, 13 Oct 2022 09:49:23 +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 G6W7QMe6cfWn; Thu, 13 Oct 2022 09:49:21 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: kunyu@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id A267F1E80D99; Thu, 13 Oct 2022 09:49:20 +0800 (CST) From: Li kunyu To: skhan@linuxfoundation.org Cc: kunyu@nfschina.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, ray.huang@amd.com, shuah@kernel.org, trenn@suse.com Subject: Date: Thu, 13 Oct 2022 09:49:10 +0800 Message-Id: <20221013014911.2682-1-kunyu@nfschina.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <14d690a4-d2d5-01db-b2a2-e3c87b4a6394@linuxfoundation.org> References: <14d690a4-d2d5-01db-b2a2-e3c87b4a6394@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, SPF_HELO_NONE,SPF_NONE autolearn=no 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 I'm glad to get your reply. In previous tests, it was found that variable initialization and assignment use mov related instructions. Therefore, when I analyze the code and find that removing some variable initialization and assignment does not affect the function and security, I will try to remove variable initialization. Find the malloc function and find that its return value is void * type, so it does not need to cast. thanks, kunyu