Re: [PATCH] misc: apds990x: Remove unnecessary return code in apds990x_power_state_show()

From: Greg Kroah-Hartman
Date: Tue Mar 14 2023 - 02:02:48 EST


On Tue, Mar 14, 2023 at 10:27:32AM +0900, Nobuhiro Iwamatsu wrote:
> In apds990x_power_state_show(), the return value of sprintf is returned, so
> 'return 0' is unnecessary. This remove 'return 0'.
>
> Fixes: 92b1f84d46b2 ("drivers/misc: driver for APDS990X ALS and proximity sensors")
> Cc: stable@xxxxxxxxxxxxxxx

Why is this needed for stable kernels? It's dead code removal, no
actual functionality is changed.

thanks,

greg k-h