Received: by 2002:ac8:4602:0:b0:405:464a:c27a with SMTP id p2csp2535153qtn; Tue, 25 Jul 2023 11:31:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlFe7OjLJS5HNAfDXi4+QbyUOdaUctA4t75MKtOP1MdfAi4i67sPC2tAYVqC+b0BLSs3Ncp2 X-Received: by 2002:a17:90b:1c0d:b0:268:4dcb:b09e with SMTP id oc13-20020a17090b1c0d00b002684dcbb09emr49907pjb.46.1690309889032; Tue, 25 Jul 2023 11:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690309889; cv=none; d=google.com; s=arc-20160816; b=txvYh/6KcAMusaM05yCFEXy7TGjAxYDSFYWtJzBleCSd1tJu5ZRVBHZS0m49cidaad B91g6HE7fgghK4R23LHdlTOvyQ/RXFB3ED6JFBs9twZLdkkUIKCYKgXe0MnzXDzfQzoM QqVO7ecen75AuwfkW/k9AP8CIwIkGPUb+geE7UVgt4kedqzNp6qObjXCBnOyR+SsuxdH yIiLqQ5xamhedrhzItmo3XWFvRBa67vwpBGWZP7y09NXL6ZAIqd86E6+0UYw0Z2RWFKp A+1ZK6ZzINboziynAMdCTAO9PjMTX/jKUpicx029UqwZexer2Af2ZarGmvPN3oJkwQ12 3E/A== 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=xIqvK7YdmxzKrpy/l4tVdHVWVQQq2rkcxNoo2+zB9I4=; fh=tRVF8+lda9bdQSEp/arj7/6sGCI/pAIJZbkBFLyPtrg=; b=rSZJck8Bg/HW4wNpZeDo73n/wy6HXoxOnP23JiHLQ/++e+gYUWgZMWxD72ugSZDPtc wE7IAQ/7ezR86vXnT7GFL1RzKeH35dRknDk9GzDHxlHRvojAdZYrdgJRRUCvyDaHbwHO 4Jd1emedTQKZN0rb3V+7Bbzu/H4uo+2C092ptHJB0n82f4BBbELhXQhXCn2IinCATtou zcnu6hdadUJp3rbUr2f3Itk5BrTBugfLYwxwD7FYl3yW43ouvmkvo+nwFAP7Trm0kMtT lmQVPCo2kGUCHXV1FAamcNh3CYjjr/Y0abKavzRMUCXitbMKqMsxkxo+cokFei2WVoxp VuKw== 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 j6-20020a17090ae60600b00265805c4b47si13976753pjy.190.2023.07.25.11.31.16; Tue, 25 Jul 2023 11:31:29 -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 S232575AbjGYSGn (ORCPT + 99 others); Tue, 25 Jul 2023 14:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232241AbjGYSGl (ORCPT ); Tue, 25 Jul 2023 14:06:41 -0400 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C2A21FDA; Tue, 25 Jul 2023 11:06:39 -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 58712f2710031aa7; Tue, 25 Jul 2023 20:06:38 +0200 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 7CC58661B14; Tue, 25 Jul 2023 20:06:37 +0200 (CEST) From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Zhang Rui , Srinivas Pandruvada , Linux PM Subject: [PATCH v1] ACPI: thermal: Drop enabled flag from struct acpi_thermal_active Date: Tue, 25 Jul 2023 20:06:37 +0200 Message-ID: <2696210.mvXUDI8C0e@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: gggruggvucftvghtrhhoucdtuddrgedviedriedtgdduudekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepffffffekgfehheffleetieevfeefvefhleetjedvvdeijeejledvieehueevueffnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohephedprhgtphhtthhopehlihhnuhigqdgrtghpihesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomhdp 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,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 The enabled field of struct acpi_thermal_active is only updated and never read, so drop it along with the related code. No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/thermal.c | 6 ------ 1 file changed, 6 deletions(-) Index: linux-pm/drivers/acpi/thermal.c =================================================================== --- linux-pm.orig/drivers/acpi/thermal.c +++ linux-pm/drivers/acpi/thermal.c @@ -121,7 +121,6 @@ struct acpi_thermal_active { struct acpi_handle_list devices; unsigned long temperature; bool valid; - bool enabled; }; struct acpi_thermal_trips { @@ -1084,15 +1083,10 @@ static int acpi_thermal_resume(struct de if (!tz->trips.active[i].valid) break; - tz->trips.active[i].enabled = true; 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); - if (result || (power_state != ACPI_STATE_D0)) { - tz->trips.active[i].enabled = false; - break; - } } }