port: Fix coding style.

We always but braces around 'if' blocks.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2017-11-23 23:13:55 -08:00
parent 8ecdedaa69
commit d34d253fb4
1 changed files with 2 additions and 1 deletions

3
port.c
View File

@ -2429,8 +2429,9 @@ int port_prepare_and_send(struct port *p, struct ptp_message *msg, int event)
{ {
int cnt; int cnt;
if (msg_pre_send(msg)) if (msg_pre_send(msg)) {
return -1; return -1;
}
if (msg->header.flagField[0] & UNICAST) { if (msg->header.flagField[0] & UNICAST) {
cnt = transport_sendto(p->trp, &p->fda, event, msg); cnt = transport_sendto(p->trp, &p->fda, event, msg);
} else { } else {