On 08/10/2017 04:03 PM, Stephan Mueller wrote:
Is there a style requirement for that? checkpatch.pl does not complain. I thought that one liners in a conditional should not have braces?
Linux coding style requires braces in both branches when you have a branch with a statement and the other with multiple statements. Checkpatch complains about this when you run it with --strict option. Cheers, ta