From nobody Fri Oct 3 15:36:00 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C437330BBA5; Thu, 28 Aug 2025 11:02:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756378925; cv=none; b=Lu3ruVaeP8rj06MiBk1PIYrPXPf6dgMTR8yMgwUg9/j+qM/IGSV9EhZAUBGAHy9PkP4gJ+CwlEuCeebr/nIFhM4y6wr3V2GQxFALlDmORi74H0D1kQf6Bia7UZDW1ruB12vwA/5BE1e0MMZnuS4RawFpuiNhUNUFlLcnTyXzuSg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756378925; c=relaxed/simple; bh=oVhq1BnzHltu6MYAZKU0miuwxHCzawaJs4s8iYb7sfM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JseHQBYVLZU3ut/x7vmjwbjr6uDMRepnDFHls15djfEyzp7my9mm9hdWJt4s2x3IuB/qiR8hIivgpw49bSkHa9SnIUQq/UznF20BcZNCjHzi8MEL5vov4XHX49rf9R7eBmsA2+IFx8IM6AaqSYep7zKKhYVB2+VvFn5F6ByJSqw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=omqWf+bk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="omqWf+bk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5381AC4CEEB; Thu, 28 Aug 2025 11:02:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1756378925; bh=oVhq1BnzHltu6MYAZKU0miuwxHCzawaJs4s8iYb7sfM=; h=From:To:Cc:Subject:Date:From; b=omqWf+bksS3wgZQrkQ4/ofQO5bRwa9MaU09r/3tJ98Z5MpPzBuRJ3DJPnusPA4Sso otNz2SPQvj0ZqQ28RIsdTI2a4zYCAFQH/cbl0TsMkfUYDc0s9HhPSpLGnEMHwYd9hB fmgVmm+OIuV5icRbvjJcdImHFJGSgiSPLr+2ZpTdzxiDUGabkbzKMlM3oCLBIOd61M jcJKnYPblpPy8uOF/aPExF0MNRhpQKTSqkjp8VsK69yLPK1IuhrvW1MzqVzjkn901L u7UnZr7HpMcQUgeoxFQINFFvPQYA+Tc3ZgKEN2DwWcekpuZWf6mQ+fo38Ud4QaOSOc npwySVjHv9fMQ== From: "Rafael J. Wysocki" To: Linux ACPI Cc: LKML , Linux PM , Zhang Rui Subject: [PATCH v1] ACPI: thermal: Get rid of a dummy local variable Date: Thu, 28 Aug 2025 13:02:01 +0200 Message-ID: <13851842.uLZWGnKmhe@rafael.j.wysocki> Organization: Linux Kernel Development Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Rafael J. Wysocki The second argument of acpi_bus_update_power() can be NULL, so drop the power_state dummy local variable in acpi_thermal_resume() used just for avoiding passing NULL as the second argument to that function. No intentional functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/acpi/thermal.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -924,7 +924,7 @@ static int acpi_thermal_resume(struct device *dev) { struct acpi_thermal *tz; - int i, j, power_state; + int i, j; =20 if (!dev) return -EINVAL; @@ -939,10 +939,8 @@ if (!acpi_thermal_trip_valid(acpi_trip)) break; =20 - for (j =3D 0; j < acpi_trip->devices.count; j++) { - acpi_bus_update_power(acpi_trip->devices.handles[j], - &power_state); - } + for (j =3D 0; j < acpi_trip->devices.count; j++) + acpi_bus_update_power(acpi_trip->devices.handles[j], NULL); } =20 acpi_queue_thermal_check(tz);