Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2842760pxj; Mon, 14 Jun 2021 08:22:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKyjrVLLlByz6haD4L3FzaurW2z670fo3IIXdTwWaG257ICYIVIbRTaXIE2Yeqc8NUW03D X-Received: by 2002:a05:6402:34c6:: with SMTP id w6mr17769580edc.174.1623684178677; Mon, 14 Jun 2021 08:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623684178; cv=none; d=google.com; s=arc-20160816; b=qwDv7VvJKeiigunn96ygboRsFO1zb3Ag6bwPbwmT5xWg/ofguNu2nmvg8wskQVgiCa b9PnSiYhy0TP9Xi12HLNw6ic+OPgCkdL9cjFPKab5QqlQSi65c1Us9YLTZAOzC7lSdAX hKGNv7Z8GJJNK/iBWmv52N8NBlCnO7U11C8nq3h3rC+93duiJe6eMEaSMNzS9evU6x0a bINPo2bAdcc2QerF7NVkLWmFQLv5G1MCeOM4+8CpNKf8EfVj53BTYZ5O1/2RcDdlS6A6 f0gi4G77HiJ6LptGhm3Dc6eNpSvjSI/mPi/7hIX+Q/R6m3dTB7vK3fj10/CfgQLRFgH3 xnZA== 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=gbBfsd6QEJyPQsk1CFsyqjVRFq1U4IMEejVMTtFMNhw=; b=LuI4Mf8QPWLYoalDMf69TvQfZQscO6Z6Voeewo+DCiVZUVJ6Clg9NIN6aHD8hZGWTv kt4jUG6E3yeWbUuZTkInYpV9liqFshrRpeA7afdY9AbfsiwRqxnmpqfrrIy5i9F/vbLz HpfBZ9nYbqtdrBWyC/aul3WWXSkSB6Icw9xt1DEL7MGjtezpTAGKiZYpF4OFAD6Qg+FJ GSv8RXJGnr52MzoyNj+p9b/1S+VJvcBo2dwbswPEQsKYqtDmWogDT2pVEjQEe3Fz0tvZ tMSb8mEUsSy/pXmybLoJDe7jK8kEqjtma1Br3/8WexZzdIDSZevKkxhde7zeA9pjtAUp EdLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e23si11001463ejm.395.2021.06.14.08.22.35; Mon, 14 Jun 2021 08:22:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233361AbhFNPWn (ORCPT + 99 others); Mon, 14 Jun 2021 11:22:43 -0400 Received: from mail-oi1-f178.google.com ([209.85.167.178]:39450 "EHLO mail-oi1-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233352AbhFNPWm (ORCPT ); Mon, 14 Jun 2021 11:22:42 -0400 Received: by mail-oi1-f178.google.com with SMTP id m137so14755205oig.6; Mon, 14 Jun 2021 08:20:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gbBfsd6QEJyPQsk1CFsyqjVRFq1U4IMEejVMTtFMNhw=; b=Mr8g5S0U4PyApU8CUmzu9GiKe2D9uks/omGEQQvYc9pdGyDGFN6odg8ohEJQJNexXk NFCVmr0E4tLfmqb0DhJN535AXcE2qgfpZQo/oJXuW6ndR6HSASZ3HWMgZVv0yQ/5gJHa CJ7DJZGX5dPPLLjskwZEMd5bo4uEWwe9X0l0l3tfseNwwJu678gXFYFWBb7SuZNBf85i bs48otkvrabsrPUnneStE+2D9R/zZUMmPOB0Um6yFkFi9rrd5gWklIz1dOMfBJidMyzb zffwwF5SvZitTH2AU0UBsb4ep/aouNPzWYR0NscwkGpdjk9r+wj+cwqFugY2jcCwFrE2 TX6A== X-Gm-Message-State: AOAM531d4QMUOuIqulqPrka8hVRJ8xSONWiChlIglyGEJMw2yre1R0TQ N2AM70vA6rBPkVqgz82WNX1Jy03MoDuoT2EPNMo= X-Received: by 2002:aca:b406:: with SMTP id d6mr10830977oif.71.1623684039411; Mon, 14 Jun 2021 08:20:39 -0700 (PDT) MIME-Version: 1.0 References: <1623318039-57133-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1623318039-57133-1-git-send-email-yang.lee@linux.alibaba.com> From: "Rafael J. Wysocki" Date: Mon, 14 Jun 2021 17:20:28 +0200 Message-ID: Subject: Re: [PATCH -next 1/2] ACPI: processor_throttling: Remove redundant initialization of 'obj' To: Yang Li Cc: "Rafael J. Wysocki" , Len Brown , Nathan Chancellor , Nick Desaulniers , ACPI Devel Maling List , Linux Kernel Mailing List , clang-built-linux@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 11:40 AM Yang Li wrote: > > 'obj' is being initialized, however this value is never read as > 'obj' is assigned an updated value later. Remove the redundant > initialization. > > Clean up clang warning: > drivers/acpi/processor_throttling.c:409:20: warning: Value stored to > 'obj' during its initialization is never read > [clang-analyzer-deadcode.DeadStores] > > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > drivers/acpi/processor_throttling.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c > index 0086afe..017fd02 100644 > --- a/drivers/acpi/processor_throttling.c > +++ b/drivers/acpi/processor_throttling.c > @@ -406,7 +406,7 @@ static int acpi_processor_get_throttling_control(struct acpi_processor *pr) > acpi_status status = 0; > struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; > union acpi_object *ptc = NULL; > - union acpi_object obj = { 0 }; > + union acpi_object obj; > struct acpi_processor_throttling *throttling; > > status = acpi_evaluate_object(pr->handle, "_PTC", NULL, &buffer); > -- Applied as 5.14 material, thanks!