We always but braces around 'if' blocks. Signed-off-by: Richard Cochran <richardcoch...@gmail.com> --- port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/port.c b/port.c index 263638c..2ee3ac6 100644 --- a/port.c +++ b/port.c @@ -2426,8 +2426,9 @@ int port_prepare_and_send(struct port *p, struct ptp_message *msg, int event) { int cnt; - if (msg_pre_send(msg)) + if (msg_pre_send(msg)) { return -1; + } if (msg->header.flagField[0] & UNICAST) { cnt = transport_sendto(p->trp, &p->fda, event, msg); } else { -- 2.11.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel