Re: + proc-fix-dentry-inode-overinstantiating-under-proc-pid-net-checkpatch-fixes.patch added to -mm tree

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

 



On Sat, 26 Mar 2022 17:33:34 +0300 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:

> On Fri, Mar 25, 2022 at 08:27:27PM -0700, Andrew Morton wrote:
>  
> > WARNING: braces {} are not necessary for single statement blocks
> 
> Who is inventing all these silly rules?

um, Linus?

: Do not unnecessarily use braces where a single statement will do.
: 
: .. code-block:: c
: 
: 	if (condition)
: 		action();

has been in Documentation/process/coding-style.rst since 2015 and it
was in Documentation/CodingStyle for infinity.



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux