msg: Remove the 'last_tlv' field.

All users have been converted to the TLV list, so remove the field.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2018-02-23 23:24:19 -08:00
parent a061256bbd
commit ecb5fa8ffb
2 changed files with 0 additions and 7 deletions

1
msg.c
View File

@ -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)

6
msg.h
View File

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