From ecb5fa8ffbc13ea8bddc055d6c37c203f3504ba8 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Fri, 23 Feb 2018 23:24:19 -0800 Subject: [PATCH] msg: Remove the 'last_tlv' field. All users have been converted to the TLV list, so remove the field. Signed-off-by: Richard Cochran --- msg.c | 1 - msg.h | 6 ------ 2 files changed, 7 deletions(-) diff --git a/msg.c b/msg.c index 348b7b5..8bc14f8 100644 --- a/msg.c +++ b/msg.c @@ -462,7 +462,6 @@ void msg_tlv_attach(struct ptp_message *msg, struct tlv_extra *extra) { TAILQ_INSERT_TAIL(&msg->tlv_list, extra, list); msg->tlv_count++; - msg->last_tlv = extra; } const char *msg_type_string(int type) diff --git a/msg.h b/msg.h index 7005481..dd8c069 100644 --- a/msg.h +++ b/msg.h @@ -228,12 +228,6 @@ struct ptp_message { * Contains the number of TLVs in the suffix. */ int tlv_count; - /** - * Used to hold the data of the last TLV in the message when - * the layout of the TLV makes it difficult to access the data - * directly from the message's buffer. - */ - struct tlv_extra *last_tlv; }; /**