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
parent
a061256bbd
commit
ecb5fa8ffb
1
msg.c
1
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)
|
||||
|
|
6
msg.h
6
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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue