From ee2a9d4ac998595a5b1093c386789cce7a267904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 25 Jun 2018 15:06:32 +0200 Subject: [PATCH] follow_up_info_append: port argument is unused MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafaël Carré --- port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/port.c b/port.c index 86fca3b..e4e09ce 100644 --- a/port.c +++ b/port.c @@ -374,7 +374,7 @@ static int add_foreign_master(struct port *p, struct ptp_message *m) return broke_threshold || diff; } -static int follow_up_info_append(struct port *p, struct ptp_message *m) +static int follow_up_info_append(struct ptp_message *m) { struct follow_up_info_tlv *fui; struct tlv_extra *extra; @@ -1449,7 +1449,7 @@ static int port_tx_sync(struct port *p, struct address *dst) fup->address = *dst; fup->header.flagField[0] |= UNICAST; } - if (p->follow_up_info && follow_up_info_append(p, fup)) { + if (p->follow_up_info && follow_up_info_append(fup)) { pr_err("port %hu: append fup info failed", portnum(p)); err = -1; goto out;