[PATCH *-next 00/18] Remove weird and needless 'return' for void APIs
Arnd Bergmann
arnd at arndb.de
Fri Feb 21 07:40:58 PST 2025
On Fri, Feb 21, 2025, at 14:02, Zijun Hu wrote:
> This patch series is to remove weird and needless 'return' for
> void APIs under include/ with the following pattern:
>
> api_header.h:
>
> void api_func_a(...);
>
> static inline void api_func_b(...)
> {
> return api_func_a(...);
> }
>
> Remove the needless 'return' in api_func_b().
>
> Signed-off-by: Zijun Hu <quic_zijuhu at quicinc.com>
I have no objection to the changes, but I think you should
describe the motivation for them beyond them being 'weird'.
Do these 'return' statements get in the way of some other
work you are doing? Is there a compiler warning you want
to enable to ensure they don't come back? Is this all of
the instances in the kernel or just the ones you found by
inspection?
Arnd
More information about the linux-mtd
mailing list