Signed-off-by: Rafaël Carré <[email protected]>
---
tc.c | 2 +-
transport.c | 2 +-
transport.h | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/tc.c b/tc.c
index 8b71451..fb46603 100644
--- a/tc.c
+++ b/tc.c
@@ -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));
diff --git a/transport.c b/transport.c
index 8fb94de..9366fbf 100644
--- a/transport.c
+++ b/transport.c
@@ -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);
diff --git a/transport.h b/transport.h
index 4f6dc36..5b8c413 100644
--- a/transport.h
+++ b/transport.h
@@ -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);
/**
--
2.17.1
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel