From d34d253fb47e30a97b920a67739c1877be33760c Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Thu, 23 Nov 2017 23:13:55 -0800 Subject: [PATCH] port: Fix coding style. We always but braces around 'if' blocks. Signed-off-by: Richard Cochran --- port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port.c b/port.c index 40ef942..f4c49af 100644 --- a/port.c +++ b/port.c @@ -2429,8 +2429,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 {