From patchwork Thu Aug 10 18:44:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 134153 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp617420vqi; Thu, 10 Aug 2023 11:52:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF7Yq9W/obQSPegns138s1Ll1XdIWXKFEQC9QJTr/IzBSIF4pNqM1zJm67GkSv8v2YfgttW X-Received: by 2002:aa7:d5d9:0:b0:522:55cb:ad88 with SMTP id d25-20020aa7d5d9000000b0052255cbad88mr2882267eds.6.1691693537497; Thu, 10 Aug 2023 11:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691693537; cv=none; d=google.com; s=arc-20160816; b=lIbMSwNaht1AxMaL3iXV0Bt0AyG0vQwrMct++lz8Lvy/X875Y75dmFYa2AXYqZXRvp tDg2Fq/KF1FREgqjGChM37XkX5jLOejDGFRjEqFHcYxCicPE56E2RGwiWsgpOYwKxyiW lQwZQvI9go30Ftlso446hLcgkFEILo6HFA16K6uFcPISKB1Ky/5O+euUSnAxn3fl59or 0ipURKLXATd9ZeBOgxtAMa0OqATqxJ3GmSVEXJH2+jjPY90gfZ4zCT5XTmdp7nrUCrkL ovXuF0oqmV9QWmBW/l309QanlLRk1PCHfWXcGPK+Vrgp0oVrVTbY17tBERiO81b4NKtu AvvQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r13-20020aa7d58d000000b005221edcf201si1928072edq.57.2023.08.10.11.51.53; Thu, 10 Aug 2023 11:52:17 -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 S235983AbjHJSoZ (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773869242666576528 X-GMAIL-MSGID: 1773869242666576528 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); } }