Skip to content

Commit

Permalink
Remove unneeded parameter in port_forward
Browse files Browse the repository at this point in the history
This parameter was made obsolete by the common address refactoring.

Signed-off-by: Jiri Benc <[email protected]>
  • Loading branch information
Jiri Benc authored and richardcochran committed May 3, 2014
1 parent ba577d7 commit d6e4173
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ static void clock_forward_mgmt_msg(struct clock *c, struct port *p, struct ptp_m
msg->management.boundaryHops--;
msg_pre_send(msg);
}
if (port_forward(fwd, msg, pdulen))
if (port_forward(fwd, msg))
pr_err("port %d: management forward failed", i + 1);
}
}
Expand Down
2 changes: 1 addition & 1 deletion port.c
Original file line number Diff line number Diff line change
Expand Up @@ -2163,7 +2163,7 @@ enum fsm_event port_event(struct port *p, int fd_index)
return event;
}

int port_forward(struct port *p, struct ptp_message *msg, int msglen)
int port_forward(struct port *p, struct ptp_message *msg)
{
int cnt;
cnt = transport_send(p->trp, &p->fda, 0, msg);
Expand Down
3 changes: 1 addition & 2 deletions port.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ enum fsm_event port_event(struct port *port, int fd_index);
* Forward a message on a given port.
* @param port A pointer previously obtained via port_open().
* @param msg The message to send. Must be in network byte order.
* @param msglen The length of the message in bytes.
* @return Zero on success, non-zero otherwise.
*/
int port_forward(struct port *p, struct ptp_message *msg, int msglen);
int port_forward(struct port *p, struct ptp_message *msg);

/**
* Prepare message for transmission and send it to a given port. Note that
Expand Down

0 comments on commit d6e4173

Please sign in to comment.