]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ACPICA: Update dsmethod.c to get rid of unused variable warning
authorSaket Dumbre <saket.dumbre@intel.com>
Fri, 12 Sep 2025 20:01:04 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2025 11:45:14 +0000 (12:45 +0100)
[ Upstream commit 761dc71c6020d6aa68666e96373342d49a7e9d0a ]

All the 3 major C compilers (MSVC, GCC, LLVM/Clang) warn about
the unused variable i after the removal of its usage by PR #1031
addressing Issue #1027

Link: https://github.com/acpica/acpica/commit/6d235320
Signed-off-by: Saket Dumbre <saket.dumbre@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/acpica/dsmethod.c

index 998bed6e540663da8e08b466f076017bbe102971..9f52d301e977b8d92435fbdb6ae4231fcee468b6 100644 (file)
@@ -462,7 +462,6 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,
        struct acpi_walk_state *next_walk_state = NULL;
        union acpi_operand_object *obj_desc;
        struct acpi_evaluate_info *info;
-       u32 i;
 
        ACPI_FUNCTION_TRACE_PTR(ds_call_control_method, this_walk_state);