Re: [PATCH] platform/x86: thinkpad_acpi: Remove unneeded goto
From: Ilpo Järvinen
Date: Tue Apr 28 2026 - 12:16:43 EST
On Sat, 25 Apr 2026 03:39:34 -0300, Eduardo Vasconcelos wrote:
> Remove an unneeded goto statement in hotkey_kthread(). Since
> the function has a single exit location with no cleanup code,
> the jump provides no benefit. Per the kernel coding style,
> returning directly is preferred over goto in such case [1].
>
> [1] https://www.kernel.org/doc/html/latest/process/coding-style.html
>
> [...]
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: thinkpad_acpi: Remove unneeded goto
commit: 74ab7c4d73d526bfebc6f3fd7382c6f672d8b912
--
i.