Eli, On Mon, Jul 14, 2014 at 09:40:39AM +0300, Eli Billauer wrote: > Hi, > > Thanks for this. > > And since I looked at the part in Codingstyle that deals with if-else, I > found another few mistakes regarding braces around a single statement. The > rules say, it turns out, that if one of the clauses in an if-else is longer > than one statement, both clauses should be wrapped with braces. This rule is > broken in lines 162, 536 and 613 of the same file. >
I just looked through CodingStyle, and you are right. If braces are used on one branch they should be used on all branches. Interestingly, checkpatch.pl doesn't warn about these. > ... Cheers, -- Jeremiah Mahler jmmah...@gmail.com http://github.com/jmahler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/