Re: [PATCH] HID: lenovo: silence unreachable code warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 6 Feb 2025, Dan Carpenter wrote:

> In theory, this code used to return 0 if CONFIG_ACPI_PLATFORM_PROFILE was
> disabled.  It's not clear if that was a config which would actually boot
> so we've removed the CONFIG_ACPI_PLATFORM_PROFILE ifdef.  But now the
> "return 0;" statement is unreachable and static checker tools complain.
> 
> Delete it and pull the else statement in a tab to silence the checker
> warning and make the code a bit more clear.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied, thanks Dan.

-- 
Jiri Kosina
SUSE Labs





[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux