transport_txts(): transport argument is unused

Signed-off-by: Rafaël Carré <funman@videolan.org>
master
Rafaël Carré 2018-06-25 15:06:30 +02:00 committed by Richard Cochran
parent 77995137bf
commit bdaff2ecd2
3 changed files with 3 additions and 4 deletions

2
tc.c
View File

@ -290,7 +290,7 @@ static int tc_fwd_event(struct port *q, struct ptp_message *msg)
if (tc_blocked(q, p, msg)) {
continue;
}
err = transport_txts(p->trp, &p->fda, msg);
err = transport_txts(&p->fda, msg);
if (err || !msg_sots_valid(msg)) {
pr_err("failed to fetch txts on port %hd to %hd event",
portnum(q), portnum(p));

View File

@ -66,7 +66,7 @@ int transport_sendto(struct transport *t, struct fdarray *fda,
return t->send(t, fda, event, 0, msg, len, &msg->address, &msg->hwts);
}
int transport_txts(struct transport *t, struct fdarray *fda,
int transport_txts(struct fdarray *fda,
struct ptp_message *msg)
{
int cnt, len = ntohs(msg->header.messageLength);

View File

@ -105,13 +105,12 @@ int transport_sendto(struct transport *t, struct fdarray *fda,
* Fetches the transmit time stamp for a PTP message that was sent
* with the TRANS_DEFER_EVENT flag.
*
* @param t The transport.
* @param fda The array of descriptors filled in by transport_open.
* @param msg The message previously sent using transport_send(),
* transport_peer(), or transport_sendto().
* @return Zero on success, or negative value in case of an error.
*/
int transport_txts(struct transport *t, struct fdarray *fda,
int transport_txts(struct fdarray *fda,
struct ptp_message *msg);
/**