Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp587071rdg; Thu, 10 Aug 2023 12:20:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJWeOKVoua+a+7FEPrZkE0vg9BOTeyw/i3EenaK+FucSfrttB4ZxzHooq52uHvOjeknOLU X-Received: by 2002:a05:6a20:938e:b0:134:76f6:e9e2 with SMTP id x14-20020a056a20938e00b0013476f6e9e2mr4487517pzh.58.1691695241812; Thu, 10 Aug 2023 12:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691695241; cv=none; d=google.com; s=arc-20160816; b=0JYoXaaOU+ibzlpV1R3t2eGJpvDXteyPNVNE+XtYuAYQRjyLGCxg54YbWgBFA8f49r +2c0n9KNcIU/Oggz2YF//l4COtJUq/4Mw0Xw8oxruDVug0aFX8oik+Q2oevO+AhsUa4p KUzH7zMKJ26K7gMcN+0iiHSnCr8SyXsSczVtV05FV/6MckRBzhtd4cZMvQxJEBVYnQ+j hgEfgBKs+dKK4EfBCnqJMPrpw+xpR/IxsoE+RktUSxdxui1MrV/gqTqWgMYCMs2V+WEz qFveRm0tw7QJGXw1xlrTrPAdYJsleWqTdnR7usmDFaAQpZ+19SeapjgJ5hLNQrF5X8Jl zMpw== 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 :message-id:date:subject:cc:to:from; bh=nNVXphMPW7zZqQZC+KdLo0oKQ57AXFBFtvo/HT+Ztek=; fh=tRVF8+lda9bdQSEp/arj7/6sGCI/pAIJZbkBFLyPtrg=; b=j02AniPQMf+yQaLmVXICUneW6RD36lK6alqyN7NSWTVuedEQQ80OkT2vc8yKypxym8 ycosIK+t9Uvax/aecDkoictYPKAScz2XIrI1+LZ1DzxWFUS8W8gmCDwt3SOYzrI0UWYi YDmxmpkbbqbDSNrYO0Kn57HaQ6jXg3Z/glMhg+cLTQ0q7/agrpdoRQZ778rtcbGu077+ xGfiKAtqn1c74KUQJLnO4XeJhqRQ299syxERr3FuQ/sYLYZUZwbDK9GLUmvx5Nd2bfyM 1M7OrdWxtQRmW9kNPNYoaTiTjjVbf46MZvYyQxGmxYyxGn1slu+EPsexldztY1McRUtj tEfw== 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 v12-20020a056a00148c00b0068263da2c43si2020961pfu.392.2023.08.10.12.20.29; Thu, 10 Aug 2023 12:20:41 -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 S235829AbjHJSt3 (ORCPT + 99 others); Thu, 10 Aug 2023 14:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236209AbjHJSt0 (ORCPT ); Thu, 10 Aug 2023 14:49:26 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF28726A6; Thu, 10 Aug 2023 11:49:10 -0700 (PDT) Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.2.0) id cf8b8b0f17ceead9; Thu, 10 Aug 2023 20:49:09 +0200 Authentication-Results: v370.home.net.pl; spf=softfail (domain owner discourages use of this host) smtp.mailfrom=rjwysocki.net (client-ip=195.136.19.94; helo=[195.136.19.94]; envelope-from=rjw@rjwysocki.net; receiver=) Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by v370.home.net.pl (Postfix) with ESMTPSA id EF65A66275F; Thu, 10 Aug 2023 20:49:08 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Srinivas Pandruvada , Linux PM Subject: [PATCH v2] ACPI: thermal: Drop redundant local variable from acpi_thermal_resume() Date: Thu, 10 Aug 2023 20:49:08 +0200 Message-ID: <4515915.LvFx2qVVIh@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrleeigdduvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomhdp rhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-DCC--Metrics: v370.home.net.pl 1024; Body=5 Fuz1=5 Fuz2=5 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 From: Rafael J. Wysocki Commit dabc621a3110 ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") left behind a variable that is only assigned to and never read, so drop it now. Fixes: dabc621a3110 ("ACPI: thermal: Drop enabled flag from struct acpi_thermal_active") Signed-off-by: Rafael J. Wysocki --- v1 -> v2: Use correct subject. The commit mentioned above is a linux-next one. --- drivers/acpi/thermal.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) Index: linux-pm/drivers/acpi/thermal.c =================================================================== --- linux-pm.orig/drivers/acpi/thermal.c +++ linux-pm/drivers/acpi/thermal.c @@ -1039,7 +1039,7 @@ static int acpi_thermal_suspend(struct d static int acpi_thermal_resume(struct device *dev) { struct acpi_thermal *tz; - int i, j, power_state, result; + int i, j, power_state; if (!dev) return -EINVAL; @@ -1053,9 +1053,8 @@ static int acpi_thermal_resume(struct de break; for (j = 0; j < tz->trips.active[i].devices.count; j++) { - result = acpi_bus_update_power( - tz->trips.active[i].devices.handles[j], - &power_state); + acpi_bus_update_power(tz->trips.active[i].devices.handles[j], + &power_state); } }