From bdaff2ecd2c6c7c630f39cfa5c89b74b476a3c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 25 Jun 2018 15:06:30 +0200 Subject: [PATCH] transport_txts(): transport argument is unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafaël Carré --- 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); /**