Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp509604rwe; Thu, 25 Aug 2022 04:37:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR636SHhj5rozqsbcnijt/rWoPeOoYysvYXXCg2SxhIqfk9NOtFz5tg9ArlH7ItJpCnphZee X-Received: by 2002:a17:902:7c01:b0:16f:9649:be73 with SMTP id x1-20020a1709027c0100b0016f9649be73mr3518696pll.70.1661427471886; Thu, 25 Aug 2022 04:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661427471; cv=none; d=google.com; s=arc-20160816; b=ey10M35wbCKDfpxwkTJrU8W36Ejk4t0SF2ekYIbHbHTYj4bf7GY19e5VX3XWYN//b1 sjUfs9uk2KLblZOApwaENDMAlUJ6ulWw2Gw7rBd7uTXz4eukaQG4DQQO9eLp4vLdXJEq E3I5jiy0luay8ODV9GkEjcw/OcDQoR+kCir8/y0wswvBwhxcA1WYUpIpECKi0pcoY+jZ g8wY0PsDK6M6Uj/22bTz+nva8kraOhpwzdumK6FHGlmmlneBcBUMxfSgd5Pbr4OPMNeV 2DsZr7bh+FtW1htuFw4bNKfzr0STFJeFXV31/pjPfC4IZaaXLIb2iUFwpvTNZXzuhK/W iUlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=zBAuYd6aZRMYP844dVDfOezCZkLQikm7pyO5BZEXKKI=; b=GFjJsFmtpQHeinRg3XhuRTaeVckT7HkriHNFO3zOCPedzYdAi/BUmxHL+7e13j5XCz 6I6E4iFLwY8CBHZEVK9N7OywEMpX0AkjJhTknocVh7pZ28+ySVDucXCyH/MTYvVdIuW0 9av5CBomo7ZnYvElNGtWd1fIbepm3DJWqVdjIL5hfB5fE5ZWjUU6gnVO4q64E4L/muQB vrX3JWhoUQle1RN46KQFjNJLtm0oSMCxjX/Us9GEQOUTu+RSWzZJyJZJuTOspx4GRUz5 cwrPMZfRGbgZJMh0sqFzQvR3bqqFA0w4O16aBlwgEAkOETou2gIzrMxZUQeM5tVrCuZz 8RQg== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a170902e88a00b00172e4760fc5si12962881plg.444.2022.08.25.04.37.41; Thu, 25 Aug 2022 04:37:51 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241529AbiHYLXA (ORCPT + 99 others); Thu, 25 Aug 2022 07:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241502AbiHYLWy (ORCPT ); Thu, 25 Aug 2022 07:22:54 -0400 Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com [209.85.128.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98440AF0D5; Thu, 25 Aug 2022 04:22:53 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-33db4e5ab43so50450307b3.4; Thu, 25 Aug 2022 04:22:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=zBAuYd6aZRMYP844dVDfOezCZkLQikm7pyO5BZEXKKI=; b=JzMqRCkVM9VsRkdpF4v2tDsQJ7EDhByun+gvctBM/gnN8oGe+g4ft9OI3ok210bluK z5D1xpj7e0ObikgznTXY57lsMxsRNmiyXNX+JeFAek+2cgBV8KdC6LNQJ+fRVJgpy6/V grPZA3TxTQqmsiCLREc93EDdYjecspdcXPkdl2vfr7hCr0jvRs0ppAXrjEQ7/GfOU45K kh0jumTtWDQna8mUm+OXmM1QJhgr6OS5eYm2DEl9oIhmWj+rkQGZmFpFVcTRnorXsVY3 wGXmznMLJZh669Q2i1N9kEriZtH70qM0zPDzBdpw8yjo6I7us9EOCeTjgzhM1UtScNNe t3uw== X-Gm-Message-State: ACgBeo0RzbJGCJcAuELhvrFnCeY+23Qzd1XAoRiVLpoAKELLU2XOXQyE Sy20RM1u4Mpc/aGYlwRPsSUk/kEet4thb6noR7Lm2a1+ X-Received: by 2002:a25:8d84:0:b0:695:836a:fcaf with SMTP id o4-20020a258d84000000b00695836afcafmr2755715ybl.633.1661426572692; Thu, 25 Aug 2022 04:22:52 -0700 (PDT) MIME-Version: 1.0 References: <20220825090347.30555-1-junming@nfschina.com> In-Reply-To: <20220825090347.30555-1-junming@nfschina.com> From: "Rafael J. Wysocki" Date: Thu, 25 Aug 2022 13:22:41 +0200 Message-ID: Subject: Re: [PATCH] tools: Delete the initialization value To: shijm Cc: Len Brown , Linux Kernel Mailing List , "open list:ACPI COMPONENT ARCHITECTURE (ACPICA)" , ACPI Devel Maling List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 On Thu, Aug 25, 2022 at 11:04 AM shijm wrote: > > From: Shi junming > > From the perspective of commpier,delete the initialization value I'm not sure what this means. The initialization is unnecessary, because the variable in question is always assigned a new value before reading it. Is that what you wanted to say? > 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 >