You're ok with a modern style ?
    if (a)
    {
        exit(-1);
    }

So much nicer looking than that 1960s code written on punch cards.



-----Original Message-----
From: Richard Cochran [mailto:richardcoch...@gmail.com]
Sent: Sonntag, 8. November 2020 18:46
To: Vladimir Oltean
Cc: linuxptp-devel@lists.sourceforge.net
Subject: Re: [Linuxptp-devel] [PATCH] Avoid setting clock frequency when free 
running.

On Sun, Nov 08, 2020 at 08:23:57PM +0200, Vladimir Oltean wrote:
> What is the convention for single statement blocks in linuxptp? Use
> braces or not? I've seen both used.

I prefer braces always, for the reasons in the CODING_STYLE.org, but I
often overlook this when reviewing patches.  It isn't a huge deal to
me if the code looks pretty!

Thanks,
Richard


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel



_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to