From patchwork Thu Aug 10 18:49:08 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: 134178 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp633191vqi; Thu, 10 Aug 2023 12:19:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTHz3P0kHzqMFK8wZ/QIadjXK6GNh3kfj1+VzR+0HzpjhdRjAbR5Ccf2oi3JPSAnXcmKFt X-Received: by 2002:a05:6a00:b85:b0:687:55cb:ef94 with SMTP id g5-20020a056a000b8500b0068755cbef94mr4351444pfj.34.1691695194411; Thu, 10 Aug 2023 12:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691695194; cv=none; d=google.com; s=arc-20160816; b=a8Dm5MIn6GhVlPYoj5q7aMf0+EqL/X6HNsOrLVhjWFgoBfpVMo6Zz8qucq0qwKx3HQ y+PA4nUIOJ1o3iYVpRPYbXiYGT2emBH0tpebxjEQykc0XY8edAnhQIaKWi6bW5nmOfNZ Y/RrFOueGrOf62A0h9IphfgcZjHcAhN8TzrRfmXVs/Jnt0ikfsJZuMoxgq0DHijSSB7T 4kulxcdFeZ5cwBmluPcJjo5609eOFaYaG2PtGj3RHg96HJAmOdmBODV2rnlKSfWdRO7o U4FUJx7WwcvyFUXiSQWNuAetOdRpFHaTaDVEo3bOyWhnjtT63SE49bjCl41zkhqKIxs4 0F4g== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu11-20020a056a00410b00b00687805f8da5si1950984pfb.83.2023.08.10.12.19.42; Thu, 10 Aug 2023 12:19:54 -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 S232046AbjHJSta (ORCPT + 99 others); Thu, 10 Aug 2023 14:49:30 -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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773870980039622214 X-GMAIL-MSGID: 1773870980039622214 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); } }