]> git.ipfire.org Git - thirdparty/linux.git/commit
ACPI: acpi_watchdog: use LIST_HEAD for stack-allocated list
authorCan Peng <pengcan@kylinos.cn>
Tue, 9 Dec 2025 07:27:57 +0000 (15:27 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Jan 2026 19:37:54 +0000 (20:37 +0100)
commitb0c8ac52da5a1c00bb9ffdc231cbf2222297688d
treeb88c70f360bd1ba472511f59be0e4cfec3594509
parent9ace4753a5202b02191d54e9fdf7f9e3d02b85eb
ACPI: acpi_watchdog: use LIST_HEAD for stack-allocated list

Replace the separate declaration of 'resource_list' and subsequent
INIT_LIST_HEAD() call with LIST_HEAD(), which declares and initializes
the list head in one idiomatic step. This reduces code verbosity and
aligns with common kernel coding patterns, without functional change.

Signed-off-by: Can Peng <pengcan@kylinos.cn>
[ rjw: Subject edits ]
Link: https://patch.msgid.link/20251209072757.3110467-1-pengcan@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_watchdog.c