follow_up_info_append: port argument is unused

Signed-off-by: Rafaël Carré <funman@videolan.org>
master
Rafaël Carré 2018-06-25 15:06:32 +02:00 committed by Richard Cochran
parent d52ef498cf
commit ee2a9d4ac9
1 changed files with 2 additions and 2 deletions

4
port.c
View File

@ -374,7 +374,7 @@ static int add_foreign_master(struct port *p, struct ptp_message *m)
return broke_threshold || diff; 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 follow_up_info_tlv *fui;
struct tlv_extra *extra; struct tlv_extra *extra;
@ -1449,7 +1449,7 @@ static int port_tx_sync(struct port *p, struct address *dst)
fup->address = *dst; fup->address = *dst;
fup->header.flagField[0] |= UNICAST; 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)); pr_err("port %hu: append fup info failed", portnum(p));
err = -1; err = -1;
goto out; goto out;