All users have been converted to the TLV list, so remove the field.
Signed-off-by: Richard Cochran <[email protected]>
---
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;
};
/**
--
2.11.0
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel