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; }; /**