From: Richard C. <ric...@gm...> - 2018-01-02 04:06:00
|
We always but braces around 'if' blocks. Signed-off-by: Richard Cochran <ric...@gm...> --- port.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/port.c b/port.c index d8e29d5..b2647d3 100644 --- a/port.c +++ b/port.c @@ -2432,8 +2432,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 |