Re: [PATCH] staging: board: Remove control flow from macro

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

 



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





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux