Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp402305rwe; Thu, 25 Aug 2022 02:27:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR67OW4PEe/nMPv5zvvTdqhLxabAQQUp2uXOjIMljDDM9tTAAL81SnrIm1b4li3bmLhsMTem X-Received: by 2002:a05:6402:27d3:b0:43e:5490:27ca with SMTP id c19-20020a05640227d300b0043e549027camr2485299ede.307.1661419629447; Thu, 25 Aug 2022 02:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661419629; cv=none; d=google.com; s=arc-20160816; b=EI3TOyDmwl8OxQ8G6lnz8a9Omuahn1XAg1NzYRDUHoMaMUCD9uekyPoHawTTvWxgph MBI97CGNyCi+fk6keGO3cBYzvCbZTpAxpsSG9lXA87pmfzK492roLXeu2fu9E6zq1Otd tds/xVs74uo2psyON8A/EMqik0wZWROmWWkHa69stcJudryjBsp/laNoYef91ex2IYmi EVKyyfoDXtoGlZFVywD5E2ToSUYmTp4jSnjkdFDHdUdzcX4ERM9H9FfkxHUuztCuA3IZ W1MDD0/daxW4C79YhG+9idPAerAiNxDtXxVh9NeMHYsF3EIqN7VQq2eJAPaB/orNOpGr UeMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ldI0UaHXvWVj6WankYXymzcW69na/aHJ4w2wou/7bME=; b=gjVdNkGv+qWWI/H/V4BW8uMJQuhMfJk5/MMxSraXm+aMoz3UokvNTZM4352DJ3yDVN 88aG8IyBohzguTr6gATCzM04T4s1KhwLBeWcS/q03vcrYquPlF15D5kGtUIMjKYX4OBM dTwMZe6a/RfmNYwUjHrlWuFgC04iuGzZ5ZaYkMcaYjrDkPh8pAVJT3cW/nyfxbq2ecVk rX7r4Z3YZ9Vjik2DtiLA9NKXYflXVxViGZNHtDSY1NfQB4ANYxPecCHjxc08rDoLgaOx IFKmu7HzowldBsSt8vXup7ONB35QfeL8yMhAegdSKxMXXbXNklGJGBC4BJ7WJ2XrBnOb +p2Q== 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 ho36-20020a1709070ea400b00730a23e9326si4339305ejc.614.2022.08.25.02.26.42; Thu, 25 Aug 2022 02:27:09 -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 S237877AbiHYJEN (ORCPT + 99 others); Thu, 25 Aug 2022 05:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235033AbiHYJEL (ORCPT ); Thu, 25 Aug 2022 05:04:11 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9B6CD1580D; Thu, 25 Aug 2022 02:04:10 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id B32931E80C99; Thu, 25 Aug 2022 17:00:03 +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 OUmu_zhShEh6; Thu, 25 Aug 2022 17:00:01 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: junming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 02E5B1E80C8D; Thu, 25 Aug 2022 17:00:01 +0800 (CST) From: shijm To: lenb@kernel.org Cc: linux-kernel@vger.kernel.org, devel@acpica.org, linux-acpi@vger.kernel.org, Shi junming Subject: [PATCH] tools: Delete the initialization value Date: Thu, 25 Aug 2022 17:03:47 +0800 Message-Id: <20220825090347.30555-1-junming@nfschina.com> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 From: Shi junming From the perspective of commpier,delete the initialization value Signed-off-by: Shi junming --- tools/power/acpi/tools/pfrut/pfrut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/acpi/tools/pfrut/pfrut.c b/tools/power/acpi/tools/pfrut/pfrut.c index d79c335594b2..52aa0351533c 100644 --- a/tools/power/acpi/tools/pfrut/pfrut.c +++ b/tools/power/acpi/tools/pfrut/pfrut.c @@ -190,7 +190,7 @@ int main(int argc, char *argv[]) void *addr_map_capsule; struct stat st; char *log_buf; - int ret = 0; + int ret; if (getuid() != 0) { printf("Please run the tool as root - Exiting.\n"); -- 2.18.2