Re: [PATCH] staging: board: Remove control flow from macro
From: Dan Carpenter
Date: Sat Dec 03 2022 - 03:37:35 EST
On Fri, Dec 02, 2022 at 09:05:44PM -0600, Joe Peterson wrote:
> Adhere to Linux coding style
>
> Reported by checkpatch:
>
> WARNING: Macros with flow control statements should be avoided
>
> There is only one return value possible. Remove the checkpatch warning
> without effecting functionality.
>
> Signed-off-by: Joe Peterson <jwp.linux@xxxxxxxxx>
> ---
Does this break the build?
Anyway, checkpatch is wrong here. Just ignore checkpatch if it says
silly stuff.
regards,
dan carpenter