Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp585057rdg; Thu, 10 Aug 2023 12:16:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFf13f+rrRzjyGRwKCReCtFI6BgRQ/v1ptWpaGU6HQHVQYLYsybY1lir9TxcLOzku2wqICb X-Received: by 2002:a17:906:2191:b0:992:6064:f32b with SMTP id 17-20020a170906219100b009926064f32bmr2990951eju.46.1691694990273; Thu, 10 Aug 2023 12:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691694990; cv=none; d=google.com; s=arc-20160816; b=PxoywxXxdSA8vRVbZlKHAt1MhjL2nuCeIC91MlckkZgjpESWwALvZQrR1PUzfAvFm2 Yrc067kWEHfa7HAVXV5z051FnZRWqhBkxWon8G7+Z1lDFmfxsjU+EgoYpbhZA1dTFbA6 OXdLKquaz8cKr0Gzp8i8cUdX1gy5Qq5xbvugUJeOaHMuCkYA9tNkOO7gW0Tqh1n2FIxQ WJNuidbFgPCFSkNSiBkWB3ATNEWVeGh5jU0s3wqxuh1RQo90tfSZC9c2thqlxK+hgwQY cIC8vLTJJSUzBvGyICNRXfQ1zRLJAiVvUh3RSvLfPCO8BhudHJJbTEqJfXJcWH4fptcG uK3A== 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=t76sGOSywV6dW9wQdrop3n8BA0btISRftDGY/OdVlyw=; fh=tRVF8+lda9bdQSEp/arj7/6sGCI/pAIJZbkBFLyPtrg=; b=EufOF26jFhHveldmrwvCl8r6FutmAReCKuWUK9oxZZtx11sq3Y2rRV9oKXYE51e7QD c0piLY9ZBM4dDro3axfbX0LukRc98br7c6N1EfdKtI/K9+v4SesLKSgtrzlQrLlJ0VAL fmBSqWhkC/3+wYSiJzVO69yHYLcHSKLycb3/BAjXpdWOy+WRRI+aXsH1d8+yN2RtE/4B cffzsww17B6bCrLos/NniHC0K4LMsDgciQx+xp5su9IUe5mGJ7krmvYQbUeHkhLklwVM wI22MpGZkzrrlCaRsNKJI6Bddp8ys4Dz7tRmUOYQ1iNFDeK6eMmfIQEuV9avIeNvvhSp v9ZA== 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 h2-20020a1709062dc200b009924806cd0asi2080186eji.295.2023.08.10.12.16.04; Thu, 10 Aug 2023 12:16:30 -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 S235976AbjHJSoZ (ORCPT + 99 others); Thu, 10 Aug 2023 14:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235839AbjHJSoX (ORCPT ); Thu, 10 Aug 2023 14:44:23 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537BC26B7; Thu, 10 Aug 2023 11:44:22 -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 b981d70577a115e7; Thu, 10 Aug 2023 20:44:20 +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 13130662840; Thu, 10 Aug 2023 20:44:20 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Srinivas Pandruvada , Linux PM Subject: [PATCH v1] ACPI: thermal: Fold acpi_thermal_get_info() into its caller Date: Thu, 10 Aug 2023 20:44:19 +0200 Message-ID: <5973396.lOV4Wx5bFT@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: gggruggvucftvghtrhhoucdtuddrgedviedrleeigdduvdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomhdp 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 --- 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); } }